Why is the indefinite article required here?
why ενα and not μια?
Because παγωτό is neuter gender, like pretty much all nouns that end in omicron.
μια would be used for feminine-gender nouns.
I guess that in this case ένα is required to differentiate it from "some ice cream"?