One action (insider trading) is done to make money in stocks with an illegitimate advantage, and the other (sleeping under a bridge) is done to...survive.
Should insider trading be legal if it is done to survive?
At least in my region, the ACLU has sued and won a ruling saying that cops can't ticket people sleeping rough if the shelters are full/not accepting people.