I've had that happen to me once - parked up on a private road, got out of the car and the brake lights were on. Got back in, put the key in, foot on the brakes and they went out. I can only presume that the computer got it's knickers in a twist at some point! Have not managed to replicate it.