Not all libraries are free. Sometimes you have to become a member and pay for the staff and library maintenance.
Often times, parents are allowed to use the school library for research or whatever like reading books.
“A school library (or a school library media center) is a library within a school where students, staff, and often, parents of a public (state) or private (fee paying) school have access to a variety of resources.”
Other school libraries allow their students to use the internet for research. But not all schools have computers and internet access in the library.
See how easy and great it is to have computers in the library? It’s easier for the students to look and finish their reports in time.