They are often used for fiber coupling, to make the coupling less sensitive.
Check this Ball lenses need a refractive index below 2, otherwise the focal length is within the ball.