Typical use case for this is to set the origin of the sprite to its center point.
Something like this:
auto bounds = mySprite.getLocalBounds();
mySprite.setOrigin( bounds.width / 2.f, bounds.heigth / 2.f );
Other use cases is for collision detection between sprites, you need to know about the geometry of the sprite, and therefor can use getLocalBounds().