Today scandal means an event that damages the reputation of a person or organisation and attracts public disapproval. But historically the word referred to some kind of moral failing or discreditable action in the religious sphere.
Prior to that it meant a trap or stumbling block and harks back, via Middle French and Medieval Latin, to Greek skándalon, with a similar meaning. This is from a Proto-Indo-European root *skand-, and the original sense had to do with jumping or climbing. Perhaps the sense evolved via the notion of an obstacle being something that needed to be surmounted by leaping or climbing over it.
The same PIE roots gives us number of words in Modern English, such as ascend, scale, condescend, and interestingly, slander. This doublet of scandal is from Anglo-French esclaundre, which seems to have developed its modern meaning, of defaming someone, through the idea of accusing them of scandalous actions or behaviour.