This is done to secure your reservation and guarantee that you will show up. By charging you upfront, hotels can mitigate the risk of no-shows and ensure their rooms are filled. However, it's important to note that not all hotels charge you at the time of booking.