Goh's Aerodactyl was restored from an Old Amber that he found at the Pewter Museum of Science.
Museum of Science Curator used the Fossil Pokémon Restorer Machine to revive it. After it was revived, it began rampaging around the museum until
Goh battled it and calmed it down enough to befriend it and capture it.