I mean, prostitution CAN be a victimless crime, it is not always the case though. Sex trafficking is a thing after all.
Aside from that, jailing the “prostitute” is somewhat brainless though because you have no idea what the circumstances are to begin with. The logic totally falls flat on itself.