Our house in Arizona had one in the hallway just outside the bathroom and would trigger when the kids forgot to turn on the fan or opened the door after taking a shower.
The warm steam caused it to trigger.
That would also explain why it cleared so quickly.