He could have gone to Lavender Town in the Kanto region and battled with Tess there, and then they kinda got into a rivalry like that. Like if you read how Tess and Holly met, it would be like that only instead of them before friends, they became rivals.