There are several reasons why a cat might suddenly urinate on the bed. Here are some common possibilities:
1. Litter box issues: The litter box may not be clean, or the cat may not like the texture or smell of the litter, so they may choose to defecate elsewhere.
2. Health problems: Some cats may exhibit unusual behavior when they feel unwell or in pain, such as urinating on the bed or other places.
3. Behavioral habits: Some cats may urinate on the bed out of habit or curiosity.

4. Stress or anxiety: Environmental changes, new family members, the presence of other pets, or other stressors can cause cats to feel anxious, which may lead to abnormal behavior, including urinating on the bed.
5. Marking territory: Cats sometimes mark their territory by urinating. This usually happens in multi-cat households or when a new cat joins the family, as a way for the cat to assert its dominance.