Actually, people who have been adjudicated as mentally defective are prohibited from owning firearms.  Of course, the crazy ones who haven't been adjudicated slip through the cracks.

Perhaps we should implement mandatory psychiatric assessments for the entire population.  That way we could prevent the crazies from owning guns, having children, working in sensitive jobs, etc.  You'd be on board with that idea, right?