1) Most kids (especially those who'd do this) aren't that smart and all encompassing
2) the kinds of kids doing school shootings are not ones who'd take long term malicious joy out of slowly killing their student body. They have specific targets in mind and want to see their anguish now (collateral is just that)
3) there's the social media influence of it all. In some ways a school shooter wants to eventually be identified and glorified. Getting away with murder on the down low would not satisfy that need.
4) A school body is in more direct control of a safety concern like an open door than checking the content of every student's bag.