they have small hammers with metal points to break the windows... it is almost standard safety equipment in every rally car.
like this one (the blue one at the door next to auriol competition sticker).
https://www.flickr.com/photos/51932399@N07/16909374386/