In places where hotels are required to register their guests with the local authorities, they will ask for the ID of all guests. Hence all guests might not need to be present to check-in, but their ID's will. Other hotels might just ask for one ID. This is assuming that all guests begin their stay on the same night.