The infinitival clause there expresses what happens next without any intervening events, and so it can be used to convey a sense of abruptness or surprise:
He rounded the corner to find his brother standing there on the sidewalk and speaking on his mobile phone.
He doesn't round the corner with the intention of finding his brother. Finding his brother is what happens immediately upon his rounding the corner.
Sometimes it is used with the word only and there it conveys the sense of a disappointing result:
He jumped as high as he could only to fall short of the grapes hanging from the trellis.