More accurately it was because the father had multiple warnings that his child was mentally unstable but ignored them and handed his 14 year old a semiautomatic rifle even as the boy's mother (who did not live with them) pleaded to the father to lock all the guns and ammo up to prevent the kid from shooting people.
If he had only "failed to prevent his kid from shooting up a school" he wouldn't have even been charged with anything.
Doesn't google have the capability to have multiple warnings and yet still ignores them?