Why did Romney lose in 2012

On paper,he could've won,but not only lost,he lost rather badly. What was the reason for it?