You gain respect when you make meaningful posts and you contribute to community development more than your rank.
There are plenty of legendaries I have absolutely no respect for. And plenty of lowlier members I do.
Most legendaries won't have earned it through merit, there's a tiny number of those, so the only thing you had to do before the merit system to become one is shitpost for long enough without getting banned.