The move you receive from the Gym Leader in Hearthome City is Surf. It's an important Hidden Machine that lets you travel across water.
With Surf in hand, you'll open up new areas of the region to explore, so it's a well-earned reward.