Many buildings were two or more stories high.  Owners of the building sometimes had their store on the ground floor and lived upstairs.   Later on they may have rented out the upstairs for office space.