Cats like to sleep in warm, safe places, which usually means kicking you out of bed and taking over your spot. Besides your bed, cats like places where they can snuggle and feel safe.
That’s why cats often snuggle under blankets to feel protected. Other cats prefer cat beds or boxes with walls to surround them and make them feel secure.
Wherever your cat sleeps, you might as well get used to the fact that it will sleep most of the day in different locations and then expect you to feed it at all hours of the night. That’s the joy of cat ownership.