Give me one thing that has value in all of existence that doesn't give us pleasure or pushes us away from pain. In order for something to have value, it needs to give you pleasure in some way or another. What good does anything have unless you get any net pleasure out of it?
How does knowledge have any worth unless you gain any well being out of it?