Why did some countries such as Israel and Canada decide to criminalize sex work, when it used to be legal in those countries?

Making conditions more unsafe for sex workers. It used to be legal and sex workers had protection, unions, and better health, in countries like Israel, and Canada.

Why did some countries such as Israel and Canada decide to criminalize sex work, when it used to be legal in those countries?
Post Opinion