The word accommodation means making a person comfortable while traveling. A person could be traveling abroad on a cruise ship, being transported to a prison to a facility, temporary shelter or housing, military housing, visiting family or friends, a dormitory, hostel, or anywhere else that provides a place to stay.
Accommodations provides not just a bed to sleep in or a place to stay, there are other things involved. There could be packages provided that would provide dinner, lunch, or breakfast. There could be a show or an event at the place the person is staying at.
For example, when a person books a cruise, it is called all-inclusive. This means everything that a person needs is provided. There is a bedroom, a shower, and living quarters like a mini kitchen, living room, or even an office. Drinks and food along with entertainment is provided. The same goes for hotel suites.
If a person was staying at a bed and breakfast, the person could have usage of the house and rent out a room along with meals being provided. The person would be allowed to walk around the property and enjoy the swimming pool or tennis courts for example. There might be family activities with the owner of the property.
When a person is in the military, a college dormitory, or even a hostel, the accommodations are sharing a room with a person but each person has their own bed, dresser, and a desk to do homework or use the computer. They will have their own closet or have to share and will have a little bit of space to make it personal.
The basis of hearing the word accommodations is just having things provided that a person is used to and being made as comfortable as possible.