Check out this answer by user /u/dhmontgomery
https://www.reddit.com/r/AskHistorians/comments/kczqdq/why_was_napoleon_exiled_instead_of_executed_even/gfulqil