Think headlining a festival is/should be about more than popularity tbh.
I've seen Mac Demarco a couple of times. Perfectly good Sunday afternoon drinking fodder and entertaining, but not a show stealer.
FJM, on the other hand, is no bigger but is one of the most captivating live rock performers I've seen emerge in years. So he's earned it, so to speak.