If they find out a third person was staying in the room without their knowledge, it could result in fines and/or being asked to leave immediately. It's always best to be honest with hotel staff about how many people will be occupying a single room so that everyone can have an enjoyable stay!