You do not own a cat - the cat owns you - I speak from experience as the sister of a dedicated cat owner. If your cat does not want to stay with you then there is nothing you can - or should - do. Cats are independent creatures and choose where they want to live. You cannot force a cat to stay with you - ownership be damned! I do wonder why people who are out at work all day long bother getting a pet - cats and dogs both need socialisation and if you cannot provide this then don't bother bringing a pet into your household. I hear a lot of entitlement - ooh so and so shouldn't let my cat in, feed my cat etc etc. If your cat was totally happy at home then it would not be going elsewhere for companionship and food.
Humza Yusaf's resignation speech