Why did franklin need to buy the library?

I am about s4 e4 so no spoilers please