To indicate to the community that it had been resolved
Stack Overflow and, by extension, the wider Stack Exchange network are different from forums where pre- / postfixes along the lines of "solved" are common. Our goal is to build a "library of detailed, high-quality answers to every question about programming" (at least that is the end goal).
In that regard, a question is never "[re]solved", as just solving the problem that the author of the question is facing is never the goal. There is always a chance that a better, more detailed / informed answer is going to be posted.
Now readers cannot see that my problem has been resolved
On the contrary, the system provides built-in ways of indicating that the question has answers and whether one of them was accepted, and the indication is quite prominent. It is also tightly integrated with the search functionality: one can filter questions by [not] having accepted answers, use the isaccepted
search operator, etc.
Take a look at how the information is currently conveyed by the UI (as of December, 2022):
I couldn't post an answer because my question had been closed
If a question is closed, it means that the community decided it needs improvement to be a good fit for the library, and thus at the very least (if it is on-topic in the first place) requires an edit before it should be answered.
Yes, the closure often prevents users from posting a solution, but an important thing to remember is that it is supposed to be a temporary state (unless, again, the post is off-topic) — given our goal to build a long-lasting repository of knowledge, there is no rush to post an answer.