I get asked this question a lot and the answer always boils down to the same thing: Act.
The reality is that guys are just as shy as women when it comes to this stuff. The fear of rejection is strong, and it shouldn’t be. Objectively, what do you lose if somebody decides they don’t want to have coffee from you? It’s not a blown career opportunity. You’re not going to lose your car title. You asked a question and got an answer you didn’t like.
So, be active. If there’s a guy you like, ask him if he wants to grab coffee. The worst that happens is he says no.