When you check in to a hotel, they typically will ask for a credit card to put on file. The hotel will then put a hold on your card to account for any incidentals or other charges during your stay, such as room service or perhaps Wi-Fi fees (yes, some places still charge for that).