In countries like USA, if a spouse is on dependent visa, the visa becomes invalid when they divorce. If the employer has to spend on additional visa issues, then they can legally opt not to employ that person. I have seen cases in USA where many companies don't want to hire people on H1B visas as it would entail additional expenditure for them. I guess it might be similar in EU/UK too.