sounds like illegal indeed, you could’ve sue them to the work administration or whatever there is in the UK (I’ve worked there, but never had any issues on the working department… there’s so little unemployment that if you’re unhappy just go somewhere else 🤷♀️)
Not all birds are dumb, you have parrots there, so a bit of a bad comparison