1. Many many girls act friendly to a guy, but they don't want to date him. Then when he asks them out, the girl is very rude. I've even heard comments "Are you kidding me? No way." Then they walk away laughing. So that's a common early experience of guys.
2. Even if younger girls, say high school age, like the guy, they are often too shy to say "yes". So, he gives up after asking only once.
3. The guy might get laughed at by the friends of the girl nearby.
4. The guy is just plain shy and inexperienced.
I have a long time interest in psychology, specializing in relationship dynamics for 30 years.
(Please note, we give the best advice we can based on the information given in a post. For better advice, please include the age of all romantic partners.)