Religion, mostly. Like why is walking under a ladder bad luck? BECAUSE YOU BE DISRESPEKKIN' THE HOLY TRINITY, SON.
Seriously. That's where the belief came from. Now that you know it's stupid, walk under ladders with confidence, and watch this video from Mental Floss to find out why we have other silly superstitions.
[H/T Laughing Squid]