As @XcarecroW writes - it is because Soldier Eddie is *4 in your attached image: apparently he has a higher DEF than ATK in *4, but when he goes to *5 his ATK is increased above DEF and is maxed at ATK 651. And Pyro Soldier is higher because of him being a Warrior.
*edit: typo