There are several possible reasons why cats don't like to sleep with people:

Health issues: Cats may be unwilling to sleep with people because they are uncomfortable or in pain. For example, joint pain, gastrointestinal upset, or dental problems.
Environmental changes: Cats are very sensitive to environmental changes. Changes such as moving, renovations, or new furniture can make cats feel uneasy or increase their stress.
Behavioral changes: A cat's behavior may be influenced by external factors, such as the introduction of a new pet into the home or changes in family members.
Changes in social needs: Cats sometimes experience changes in their social needs, such as wanting to be alone for a period of time or preferring to rest in other places.
Age and personality changes: As cats age, their sleep needs may change. Also, each cat has its own unique personality, and some cats may prefer to remain independent.
Trust has not yet been established: If the cat has just been adopted or has had unpleasant experiences before, it may take more time to build trust.