Hardness is the resistance to plastic deformation. What you're observing is brittle fracture.
For example lead is softer than glass, but if I hit a piece of glass with a lead hammer the glass will break. This is because even the relatively soft lead is able to increase the stress on the glass to the point where brittle fracture occurs.
When you press the kitchen knife onto the glass the question is whether the steel will deform before the glass does, which indeed it will. Even so it's possible to raise the local stress under the knife to the point where the glass fails by brittle fracture. If you looked at the resulting scratch with an SEM you'd see it was a trail of microfractures not a plastic flow.