The european commission is elected, just indirectly. It is proposed by the european council, and the european parliement says yes or no.
Saying that indirect elections are undemocratic is like saying Switzerland is not a "liberal democracy" because its federal council is elected by the federal assembly instead by direct popular vote.