Is this legal?

The equipment looks brand new, perhaps the installers left them in so you know where they belong before they go and remove them for their final resting place. I know it’s Illegal in most areas to tamper/open fire alarm devices but not so sure about leaving keys in the devices.

If anyone knows for a fact that I am incorrect in my hypothesis feel free to correct me.