Lib comes from Middle English libben, from Old English libban, from Proto-Germanic libjaną, from Proto-Indo-European leip-, itself from ley-, ultimately from lew-.
lib (English): liberal; liberation; library