It's used to disable the stupid nannies that make cars unfun to drive. We don't have one (that we know about!), but on my old Honda Fit, there was a series of switches, buttons, and pedals that you activated in a certain order from the driver's seat. It would enable things like "auto locks" or "driver door unlocks when vehicle shut off". Once successfully done, all kinds of lights would flashes on the dash.
If this happens to you again, take a video with your smart phone. Post it on YouTube and tell us about it.