Plenty of people in Japan, Korea, Hong Kong, etc live happy lives in much much smaller living areas. This makes them more affordable. But building codes in many places in the USA disallow making places that small.
Other examples of questionable codes are codes that require parking spaces, codes that require front yards, codes that require backyards, etc....