Either way you pay for it.
Also, insurance companies are not non-profits. They take a cut as well. The factory already makes a profit, but that's not going to increase simply because they have to lawfully offer two years of warranty. They'll have more costs but it probably wouldn't affect the profit margin as much as an insurance company would.
If they make a solid product a manufactures warranty shouldn't cost them anything.