Guns have always posed that risk to children. Despite that, the schools, at least around here, used to have shooting ranges and the kids would bring their guns to school to make use of them! Hard to believe now, and as you can image those ranges have been since decommissioned, but nobody batted an eye back in the day.
Key point here is that adults haven't always been bothered by things that look like guns. That is something that has emerged recently. What changed?
Moreover, target shooting is the only school sport in the U.S. to have _never_ had an injury recorded as part of the sport itself --- that my local public school has a locker of rifles locked up and un-used in the basement and no longer has a marksmanship program/participates in competitions is _not_ justifiable on the basis of safety.
Further, children who have attended the NRA gun safety course have a much better record of safety and safe interactions with firearms than those who don't --- learning the rules of gun safety and the appropriate thing to do when finding a firearm which is not in the possession of a responsible adult makes for much less tragedy.
What has changed is that it used to be a part of the immigrant experience to purchase firearms and take up hunting, but the transition from rural farm life to urban city life means that an ever larger portion of the U.S. population has limited experience with/knowledge of firearms.