The glass takes the scratches instead of the screen
The 9H tempered glass absorbs the everyday scratches that would otherwise end up on the Galaxy A40 display. In a fall it helps keep the screen itself from breaking, and if the glass gets damaged it is easier to replace than the screen. At 0.33 mm it barely adds to the phone thickness.