I think the game just uses default stats based on the class.
For instance, if you examine Halsin before he's a companion, he has a higher strength. But when he becomes a companion, his stats immediately shift to the druid default you'd get at character creation.