Smuggling mission, got illegal contraband on a surface world for some dude? Don't let the guards scan you you numbskull... too late! Now you've got to kill him... oh, now you have a bounty... Well now you're cornered in some warehouse, congrats! Guess you'll die.
Yeah... Illegal missions pay well, but turns out there are consequences to doing them and not being aware of your surroundings. I learnt this the hard way, but early enough that I just restarted to clear the bounty out of laziness.