Maybe the fact that ripgrep contains more lines of code is related to the fact that it has more features, and not just about the language it's written in? https://beyondgrep.com/feature-comparison/
Also, it's kind of pointless to compare lines of code given that both projects get large amounts of their functionality from dependencies. For instance, the GNU grep repository doesn't actually contain any regex-matching code; that's all in gnulib.
EDIT: If you already knew that ripgrep had more features, and yet your immediate reaction was that you "can't take those guys and their language seriously", then your comment is straight-up trolling. Please don't do that here.