Wall Street companies delivered significant losses to their shareholders last year, but the pain didn’t spread to the top.

The chiefs of banking and financial institutions in the S&P 500 received a median raise of 8.5% last year, compared with 5.6% for CEOs in the broader index, according to a Wall Street Journal analysis.

Meanwhile, firms...