Answer & Explanation:
There are many reasons but here are a few.
1) A Libary has quality Control Compared to the Internet
2) Not everything is on the internet
3) Sources on the Internet can be harder to verify.
4) Not everything on the Internet is free.
For more help on this question comment your question and I will help you out to the best of my knowledge.
Hope This Helps! :)