Young exoplanet’s atmosphere unexpectedly differs from its birthplace