This description immediately called to mind Rear Window for me, which largely takes place in a single apartment and is widely considered a classic film.
But ironic pedantry aside, I do agree people need to get out. Even as a homebody I find myself getting grumpy if I don't get out for some sun and fresh air once in a while.