By "Spent 5 levels doing nothing useful" I mean "Spent [as in, the way you spend resources, not experience time] five of your levels [as in, the resource which a class level represents] doing nothing useful [doing nothing useful, such as aquiring real spellcasting]".