Comment by bluGill
They are often related though as if you have illegal money you also didn't pap taxes on it and in turn they can get you because they may not know where the money is from they know you spent more than your taxes indicate is possible.
Related but entirely different purposes. Paying taxes on illegally sourced money is basically the goal, because it makes it legal - it gives you a declared income and means future transactions look within your means.
Tax evasion conversely makes legally earned money somewhat illegal to the evader (though generally fine for anyone else to handle accidentally).