Need help from someone with an E36

I had noticed the dome light has come on while the car has just been parked and off. However, I’m not sure it’s related to the hazard lights which at this point are on all the time that the battery is plugged in.