I've personally been disqualified because I've worked at a legal, but "vice" based company - I've seen others not hired because their previous company was too "legacy", even though they did very similar work.
It's not necessarily right, but companies use the signals available for them - even if they're not 100% agreeable to everyone.