The punch breaks it because the force is concentrated in a small area, also some of the center punch tips are carbide or industrial diamond coated, so it caves it right in. The spark plug works the same way, the ceramic used is about 2 x as hard as average tempered side window auto glass, small bit of force behind it...... and the window breaks.
It won't work on windshields, as it is laminated safety glass.