A large number of laws written by people that don't understand economics.
For people who need money in something besides a bank, but don’t want the hassle of being a landlord. So not really profit, but something they feel will appreciate in value.
For multi-unit properties in some California cities: rent control.