That’s the way the ball bounces.
One might expect a ball to bounce towards you, but instead it goes in a different direction. Something a person expects to be of some benefit could turn out to be of little value. Or, maybe someone a person likes prefers someone else. So, if you experience something like that, a person could speak the sentence in red to you.