It wouldn't be if it were legal and the women in question had access to legal recourses to protect themselves from exploitation.
Simply making sex workers not criminals means that they can go to the police when someone hits them or steals from them.
Making sex work something that can legally happen in safe locations, decreases the risks that sex workers face.