What Benefits Does Buying a Tent Give

In my campaign (me being DM) one of my players entered a adventuring gear supplier and they wanted to buy something and they asked “What does a tent do?” And the only thing I could think of was, that it protects you from monsters in the night.

So what does it actually do?