You should also keep in mind that some miscreant may be intentionally setting off the alarm because they think it is "funny."

If this is the case, you can hardly blame the hotel for the actions of some delinquent.
Sorry that you had to endure this, though. I've only had it happen once. It got mighty cold outside.