Asking questions is fine; asking without doing prior research is fine too.
No one's entitled to an answer & certainly not a polite one if they fail to show consideration for others by putting sensible effort themselves. That's not called a doctorate, that's called trying.
Contrary to your opinion, those "assholes" may be doing OP a favor by pointing out the question is deficient. Most volunteers respond to an ineptly posed question by ignoring it. This is rational: which question would you rather answer?
- A well-prepared question that hadn't been answered before & that provides all the information relevant to answer it.
- A poorly prepared question that requires the answerer to sink in significantly more resources with painful back-and-forth to elicit missing information & point out basic resources.
Getting questions answered sooner by reducing the effort & pain to answer them is in everyone's interest.
Learning how to learn & ask questions well are indispensable skills. If you want to keep asking questions unintelligently, though, then you can expect to wear out the patience & good will of the volunteers answering them. Just as you are free to not try, everyone else is free & entitled to go full asshole on that bullshit.