Alarm is an odd word.
When alarms make a sound (flash their lights, whatever) we say they "go off."
Then, after you are awake, you "turn off" the alarm so it doesn't keep buzzing.
Think of the phrase "go off" as "activate." The alarm went off because it was activated.
[not a teacher]
Student or Learner