It's mostly about risk/reward and effort.
Giving detailed feedback takes more time, and is inherently more risky than a timely, somewhat bland rejection letter. Candidates are much more likely to feel slighted when they are given specific criticism, which they may or may not agree with.