Deportation is a different legal event. It's a forceful expulsion which occurs because you did something seriously negative like break the law. Deportations are a big deal and a bad thing to have on your record in any country when it comes to your future prospects with that country.
To use a super rough analogy it's kind of like an honorable vs dishonorable discharge from the military.