Deadbolts and chains don't help if you're not in the room, since you can't lock those on the way out. I suppose this is why many rooms have safes as well, although I'm sure those are riddled with security defects too, like everything else.
https://gizmodo.com/5837561/can-000000-secretly-open-your-ho...
https://www.independent.co.uk/travel/news-and-advice/hotel-r...
Master passkeys also work on most safes.