seems like a type of Stockholm syndrome. He grew up being trapped it's probably somewhat comforting because it's so familiar. The part he couldn't stand was being trapped while everyone who was around him kept him at a distance as well. So basically he's still trapped but he's not lonely. So really he needs some therapy lol
Is he really locked up tho? I gues you could say that cuz he's still wearing the leg collar thing but now Isshin lets him go where ever he wants. Not like before wiht his brother or his father's excile treatment where he was supervised everytime not allowed to go out even when the collar suppressed his powers as a biter

He said he felt locked up with his brother and ran off to lock himself up for his lover