I think your car's brake fluid is at lower level, so when you pass through any speed breaker, the fluid even gets below the sensor due to gravity & the brake light comes ON, and when you are again on plain road, the fluid touches the sensor & brake light goes OFF.
Just my rough observation !