In fact, only punishing kids when something gets public and only to protect the reputation of the school is the definition of hypocrisy.
Selective enforcement of the honor code is pretty stupid. Have sex with a girl = get away with it. Get a girl pregnant and marry her = expulsion. It makes no sense. Unless it's only about saving face.