Hmmmm.... I can see that they *can* be in tension. But I also see that in some people's eyes, credibility relies on some people failing - that is exactly people's complaint about grade inflation.
Gatekeeping can also require ranking because there can be a limited number of spaces at the next level (be it a different module or a different program - e.g a PhD).