While smartphone manufacturers have adopted glass and metal for their premium handsets, the companies also like to promote upgrades to make the devices more resilient. Because sometimes drops happen, and glass doesn't typically hold up all that well when it's dropped on a hard surface.
iPhone 12 and 12 Pro hold up in Allstate’s six-foot drop test thanks to Ceramic Shield