Not all balconies are connected in that way and not all cats stray.
Personally I’m not one for having animals cooped up indoors anyway.
I do it a bit differently. Taking care of a specific animal/family, in the wild, so to speak.
Also wildlife in my garden. It’s good to keep a connection with nature.