Actually they don't at all. I have a few older tablets that have plastic screens and touch works just fine (not great, but good enough).
The main benefit of glass is just that it looks nicer (clearer) and maintains the flatness of the screen better (compared to even harder plastic which will still deform a lot under pressure). On phones there is an additional benefit of scratch resistance, but that's less of an issue for laptops.