The un-elected (by the public) European Commission writes the legislation that the elected European parliament votes on. It can also respond to external proposals (by saying no). The EU strips sovereignty from member states.
https://commission.europa.eu/law/law-making-process/planning-and-proposing-law_en

