Shadow often comes across as villainous because he's fiercely self-reliant. He tends to prioritize his own goals and needs, and while he does help others from time to time, it's usually when it aligns with his own interests.
He also does exactly what he believes is right, regardless of who or what stands in his way. That uncompromising, lone-wolf attitude is what gives him his dark, morally gray edge.