Lenders in the US offer loans for investors that are still not commercial loans. They have a higher interest rate than a loan against your primary residence. There is regulation preventing you from using a primary residence loan for an investment property, and lenders will enforce it.
Commercial loans are not typically used for things with 4 units or less, however they are required for non-residential builds and for multifamily >4 units.