And that's far from all. Research, tool lending, children's activities, maker spaces, meetup spaces, study areas... My wife ran a sewing meetup at our library a few weeks ago; tons of people showed up with machines and made all kinds of stuff.
A good library is a focal point for a community.