You need to have obtained Surf from the woman in Celestic Town first. Until you have it, the Hearthome City gym stays empty.