When your legs are pressed together, it provides a wide surface for your cat to lay down and rest. Your cat is also getting them warmth he was getting from your chest. When a cat sleeps on your legs, it means they trust you and feel protected around you.