It can be set for on or off. If it has never honked before then something may have registered as open. When you opened the door was there any message like " hood open"? That is then most popular for alarm false faults when locking or alarms going off for no reason. The hood closed switch wears out.
I get a little spotty between generations and models. Most folks just disconnect it. Here's where I don't remember if you simply disconnect the two wire connecter or if you jumper the two contacts at the harness.
The hood switch is relatively cheap... appx $35. Installs in the right hood latch if you want to replace it.