Sudden disability of well car

My car was operating with no problem. Went into restaurant and 45 minutes later turned key on and windshield wipers were going full speed but I had not turned them on.I had no instrument panel data. Wipers would not turn off. Car would not come out of park. Door locks would not work.Engine ran fine. Disconnected battery for a few minutes and pushed down on all fuses. Reconnected battery and all was well. What was the problem? Will it happen again? I had battery checked and it is fine.