Why do people prostitute themselves?

There is a reason this is the oldest profession in the world. Its a simple case of demand & supply. As long as there is demand, there will be supply

Many governments in the world have understood this phenomenon and have even legalized prostitution.

As far as reasons people get into this profession, I agree with the OP - there is one group which is stuck in this due to factors beyond their control eg. poverty, criminal gangs, kidnapped & sold etc.

There is another group which is purely in it due to the easy money and ofcourse the pleasure. They are in it by choice.