Your cat chose you as the safest place of all possible sleeping spots. Sleeping between your legs seems to be the safest option of all, as you can turn from side to side, and you probably won’t disturb your cat’s sleep.
If cats seek a deep sleep, they’ll look for a safe place where they can fully relax. And what could be the safest place to fall into a deep sleep than between their owner’s legs?