They do a lot. Having a kid really enhanced my appreciation for libraries and librarians. They fill vital teaching roles, host enrichment programs, help with study groups and teach kids about research.
My local library system has stuff like maker events, guest sessions with 3D printers and all sorts of activities. It's an invaluable resource.