The question of the library as an essential service is different. It’s definitely not essential in the same way that garbage collection or police services are essential. Towns do exist without libraries.
However, time and time again when people are surveyed, it’s obvious that most people wouldn’t want to live in those towns, even the people who don’t use public libraries.
Of the non-essential services, libraries might be the most popular of all, except maybe for sports stadiums. And unlike sports stadiums, libraries bring some positive return on investment. They’re almost like essential non-essential services.