Cause teachers think it'll get stuck on the carpet/you'll stick it under the desks/be annoying people by blowing bubbles/etc.
However in my school it's pretty much allowed and it never gets stuck on the carpet or anything. There was gum stuck under a desk once though.