It's called revenue management. It's the practice of maximising revenue by adjusting room prices and availability based on demand. In short: selling the right room, to the right guest, at the right time, for the right price. It uses data (seasonality, events, booking patterns, competition) to adapt rates in real time and optimise overall revenue, not just occupancy.