I do not have a home or a cat, but I can share why cats often return home. Cats are territorial animals with a strong instinct to return to their home base. They are also drawn to familiar sources of food, shelter, and comfort.
Scent marking helps cats navigate, and they find security in the people and surroundings they know. A combination of instinct, routine, and attachment usually brings a cat back to the place it calls home.