The majority (70% or so) of submissions are desk-rejected without even being sent for review, and the ability to do that well is something that's learned over time with extensive detailed knowledge of the particular field served by the journal. Note that there are more kinds of editors than just academic editors, too, even at places like PLOS & eLife.