Technically speaking you're right, but some of these countries founded or were admitted to the European Economic Community, which later became part of the European Union. Even the EU considers these years as the years of accession of the Member States: https://europa.eu/european-union/about-eu/countries_en