They may be useless to you (although I think even seeing examples of types of questions that can be asked serves a purpose), but the book was not written only for you. I think it is reasonable for books to have features that are useful for students in courses that assign a grade, as well as other features that are useful for students using it for self study.
It is also worth pointing out, that at least for math textbooks, there is never an expectation that a student should solve all the exercises. If you solve those that do have a solution, then you will hopefully still have a good experience and learn lots.
Author here. For what it's worth, deciding what percentage of the exercises should have solutions is a continual challenge. I chose to use a lot of interactive exercises (thanks to PreTeXt these are easy to embed in the text) for which students can enter their answer and get feedback on whether they are correct. That works well for computational problems. For proof-based or otherwise theoretical problems, I tired to provide enough examples with full solutions and a few exercises with them as well, while still giving those who would like to have a more authentic open-ended problem without solution that opportunity too. And of course, I want other professors to find the book useful for courses they teach, and providing problems without solutions that can be graded for credit is also important.
It is also worth pointing out, that at least for math textbooks, there is never an expectation that a student should solve all the exercises. If you solve those that do have a solution, then you will hopefully still have a good experience and learn lots.