They can do it because they take into account the userbase and anticipated sales. Western Devs gun for 5m+ sales and pour far too much money into the game rather than develop games with a sensible expectations.
That's why a lot of Japanese games aren't the most technically accomplished. Lower budgets.