My impression is that boarding house usually includes some services (cleaning, maintenance, food) from the owner or an employee who lives on the premises.
Yes, the situation with shared common areas and private bedrooms individually leased is more typically called "single room occupancy" (SRO) and is often prohibited by local rental codes.
Where I live there is discussion about allowing it in some neighborhoods, with the requirement that the property owner is also resident in the house.