A stone when thrown on a glass window smashes the window pane to pieces. But a bullet fired from a gun passes through it making a hole. Why?

This is due to the inertia of rest.