Many live action TV series take place mainly in an indoor location, like inside a house, inside spacecraft, or inside a submarine. The show has to be set in an indoor location and it can't show an outdoor setting beside an establishing shot of what city or town the show takes place.
Generally, this is more common in Sit Coms
with a Three Cameras
setup Filmed before a Studio Audience
See also Bottle Episode
where it happens in individual episodes of shows which generally avert this.
Aversions, Subversions, Exceptions, and Inversions:
Live Action TV