I think it's because Masaki has not taken the strong suppressant yet? He said the strong suppressant is in his bag. Ogiwara also don't know that Masaki's pheromone is very unstable that time. He's not his doctor so Ogiwara wouldn't know that.
Ogiwara might've been in a generic suppressant. Taking strong suppressants is bad for the body after all. Also in omegaverses Alpha doctors don't usually handle/interact with Omega patients. For omegas they usually have beta or omega patients. They were both emotional that time Ogiwara suppressing his emotions, and Masaki exploding his feelings, so I think Masaki's pheromone explosion clouded Ogiwara's self control. So in short, it's just a case of bad timing.

Coming back to this trope after a while…it is actually dumb, like he’s still in the hospital, the doctor knew his heat could hit and even warned him it would be stronger. What, no shot? Inhibitors?? Hello?!! Σ(  ̄□ ̄||)