First and foremost, it helps hotels determine the appropriate room type to offer based on occupancy limits. It also helps them ensure guest safety and comply with local regulations. By asking for the number of guests, hotels can allocate suitable resources and amenities to meet the needs of their guests effectively.