There could be several reasons why your cat suddenly becomes distant from you. Here are some common possibilities:
Physical pain or discomfort: When a cat is sick or injured, it may avoid contact with people due to pain or discomfort. They may appear withdrawn or even resist their owner's attempts to be affectionate. If you suspect your cat is unwell, it is recommended to take it to a veterinarian for a check-up as soon as possible.
Environmental changes: Cats are very sensitive to changes in their environment. If a new member joins the household (such as another pet or family member), or if the furniture layout is changed, the cat may temporarily distance itself from its owner because it is not used to the new environment.

Startled or stressed: Cats may be startled by external factors such as loud noises, seeing strangers or other animals. Furthermore, prolonged stress or tension in cats can lead to them becoming withdrawn.
Cat Personality: Every cat has a unique personality. Some cats are naturally more independent and aloof; they may not enjoy much interaction or closeness. If your cat has this personality, then its distant behavior may be normal.