Before you master throwing balls into the basket you need to try it many many times. And at first, you will miss a lot.
It is a failure, when you aim the basket but miss, the same way when you approach women on the street to get their numbers and get rejected, or when you try a new business idea and it doesn't work.
But missing a shot in basketball doesn't feel as painful and frustrating as the failures in other examples do... Why?