Why are higher/graduate level books discussing deep topics/results written if the author clearly doesn't want the reader to understand any of it?
A graduate maths book is not a novel.
What I mean by this is that it's not something you pick up and just read your way through, nor it is something where the difficulty level doesn't change as you're reading it (though there may, certainly, be experimental novels where the difficulty level changes as you progress). This is also where the graduate text differs from an undergraduate text where the difficulty level stays fairly constant throughout the text.
Why? Because graduate text books are written to serve different purposes. An undergraduate text serves as an introduction to a subject, and while it might go into more depth on some topics, those are still considered introductory topics. All the details are provided because they are an introduction and part of the aim is to show the reader how to think about these things for themselves. Like when reading an annotated chess game, the author is providing key insights into what's gone on and highlighting points of interest to help the reader. In a graduate text the reader is annotating as they go.
A graduate text can be a reference text: its job is to provide lots of results that are commonly known, or expected to be known, by researchers in the area so they can reference them. This can be for citing them in papers, and it can be for looking the result up and checking what the hypotheses are and how/if they can be weakened. These books are definitely not novels and are not intended for reading straight through.
A graduate text can also be a teaching text, in which case the expectation is that the reader will work out the details for themselves. Results are given with directions for thought and key insights provided, but the reader now has to really think about things. A chapter isn't bedtime reading, it's three weeks of work. But the payoff is significant; you get a deeper understanding of the subject and how everything fits together. And, crucially, you can now go back and read that chapter easily because all the things needed to understand are now in your mind as well as on the page.
I said these books aren't like novels. If they were, they'd be linear and most aren't; they have a core and then they move out to areas that the authors are most interested in, missing out whole swathes of possible material and leaving it to be covered by another book or other papers/teachers/internet articles. If a graduate text were a crime novel then the victim's name would be revealed somewhere in the middle and then there'd be four chapters on why the room the murder was committed in was especially interesting. The best way to view these books, really, is as a very large exercise in understanding a subject properly.
Finally, no-one wants the book to be not understood. The author has a certain amount of pride at stake, in that they want their book to be referenced and talked about. The published wants to make (some) money from this book. The readers want something valuable in return for their money.