Personally, I don’t think we have a clue in any precise way,
WHY Jesus said John was greatest of mortals.
However, it IS CLEAR HE MEANT IT.
It is also clear that included greater than Mary.
Which is a good time to clarify that scripture should be judged with scripture, to get the WHOLE point. I think others were in Matthew, where Greater Prophet wasn't mentioned.