Typically, professors announce office hours during which they will be available to answer questions, so this is not an issue.
From a professor's perspective, online options for tutoring students are vastly inferior. Helping a student understand a concept is interactive: you must ask the student questions, listen to their explanations, and formulate explanations to give back to them. That is very difficult in a text-based medium, particularly in a course involving mathematics or other things that don't really fit in plain text. (And while I can write LaTeX math quickly, my students cannot.)
You'll also often have multiple students asking questions. In person, it's easy to group together related questions, and to jump from student to student -- or to say "why don't you talk to Sarah, she's working on the same problem." In an anonymous online setting, you lose that, and students can't connect to each other.
I've used asynchronous online platforms like Piazza, and you lose all the opportunity to listen to students and figure out what exactly they're thinking. Instead you just provide a wall of text for them. And of course students learn to expect responses within hours at any time of day, including weekends, and start getting annoyed if you don't respond quickly to a question posted at 4am Saturday morning. You start to dread the Piazza notifications. Yes, you can set expectations and insist you only answer during certain hours, but other courses will have that one fanatical TA who answers at all hours, and so your students will still be annoyed.
edit: That being said, you're right about students being more willing to use anonymous options. When I lectured online due to COVID, and students could send a direct message to me in the Zoom chat, I got loads of questions. I had to learn to keep the chat open on a second monitor to follow the questions and respond in real-time. As soon as we switched back to in-person teaching, the questions stopped, and the class would just stare at me blankly if I asked if they had questions. But I'm not sure how to replicate that option in person.