'Aren't I' is ungrammatical, so why is it OK?

Normally, "are" goes with a plural subject like "we" and "am" goes with "I." Yet the construction "aren't I" is perfectly correct and a great lesson on the power of idiom.