Great Moments In Golddiggery

Amusement aside, in what way is this different than prostitution, other than it is a long-term lease (depending on the pre-nup terms) rather than a short-term rental?

And why is one legal and the other not?