I can see compiling happen accidentally, since it’s probably just a compile flag and someone forgot to disable it. But pushing is really surprising, sure it can be automated, but usually you have a manual process for such things (e.g. my company’s prod deployment is 100% automated, except for a manual approval step once everything is ready).
So the only way for this to happen imo is if they pushed something intentionally and has accidentally disabled/enabled a flag at some point prior.