How did we get from free people hunting and exploring the earth to Prisoners having to pay money just to eat?

In the United States, prisoners are typically required to pay for their own food, clothing, and hygiene products. They may also be charged fees for medical care and phone calls. In some states, prisoners are even required to pay rent.