'Aren't I?' or 'Are I Not?'

'Aren't I?' or 'Are I Not?'

'Aren't I' was considered an error for much of the 20th century. These days, it's widely accepted. What happened?