That's what I thought but I read something recently (FAQ? Sage Advice? EN World?) that distinguished between HD and class levels for purposes of either applying a template or adding class levels to a monster - I can't remember which. So that's what got me confused.