It's common for hostels (and even hotels) in Europe and South America to ask for your passport as this is a standard way to gather someone's ID (as opposed to different national licenses and the like). In the US, I have never been asked to show by passport at a hotel (never stayed at a hostel), license always sufficed.