This confused me too because Team Rocket was the first to meet her in the anime, but Ash did meet her before his friends did. Ash met Acerola whenever he went to look for the island's Kahuna.