You remember school. There’s always those little power hungry pockets who can get away with surprising things because it’s “their domain”. In this case a ref has the power to make up a rule and execute it on the spot, which he did.
Big fish, small pond, but now exposed for the world to see.
Maybe there’s more to the story but I think it is what you see.