I think the important thing is the detection as much as the penalty.
It's a bit like dropping rocks on cars from overpasses.
Idiots keep doing it because they think they're impossible to catch. Arrest and name the culprits and the moronic minority stop and think 'Oh, I might get caught' before they do such stupid things. IMO the deterrent factor is as important as the actual sentence.