Kittens may want to climb onto the bed to sleep for the following reasons:
Seeking security: Kittens may feel uneasy and maladjusted when they are first separated from their mother or in a new environment, so they will look for a safe place to sleep. A bed is a relatively safe and comfortable place, so kittens may choose to climb onto a bed to sleep.
Temperature regulation: Kittens have a poor ability to regulate their body temperature. If the room temperature is low, they may choose to climb onto the bed to sleep in order to maintain their body temperature.

Habitual issues: Some kittens may have already gotten used to sleeping in the bed and will continue to do so.
It's important to note that while a bed may be a relatively safe and comfortable place for kittens, hygiene and safety are still crucial. If bedding isn't changed, cleaned, and disinfected regularly, bacteria and viruses can grow, potentially harming the kitten's health. Furthermore, sharp objects or items on the bed that could trap or trap kittens could also cause injury.