There is a difference-Napoleon was the army commander and Bernadotte's superior officer. Bernadotte, in turn, was a subordinate bound to obey the regulations and policies set by the commander.
His actions were insubordinate and that coupled with his other actions led to his relief.
Sincerely,
M