I just re-watched TNG “In Theory” (S04E25) and Data says that the door to his quarters is set to only allow humanoids to enter or leave when Geordie finds Spot in the hall.
Whilst I get that it would be dangerous for Spot to wander the ship freely I think it’s kind of mean to keep him locked in a small room like that forever. There doesn’t seem to be any cat toys in the room but maybe the computer is capable of some sort of environmental enrichment we can’t immediately see.
Are you kidding? Spot got out whenever she damn well felt like it. There’s no way that Data didn’t figure out how to keep the cat from unlocking the door; I’m pretty sure that spot came and went whenever she felt like it. Especially when you remember that all of the toughest guys on the ship were terrified of that cat lol
In the episode where Spot gives birth, it is clear Spot gets out.