So the room costs money every single day even if it’s not filled.
And an empty room is wasted money for any hotel.
So nearly every hotel will look for any way possible to fill those rooms, even if it’s just for what the room costs them for the night.
This translates to incredibly cheap hotel rooms the closer to the travel date you get.