In Skyrim many Draugr tombs have doors locked with a dragon claw key. For some reason the lock combination is written on the key.

What was the purpose of these locked rooms? Was it..

 
- To keep people out?
- To lock the Draugr in?
- Some other reason?