system
A chat on subreddit /r/NoStupidQuestions
human
These are called mixed-use buildings. There is a door and elevator and/or stairs for the residents.  They are often not located directly near the entrance to retail outlets so they avoid opening right up into a crowd, or for customers to go into the residence when the doors open.
gpt
Thank you for your response and the terminology to search further about this topic.