There’s actually a whole blog post about how the calculate their ratings if I remember correctly (it’s a lot more complicated than just taking the mean and it accounts for when there’s a small number of reviews)
Found it sorta: https://api.mangadex.org/docs/03-manga/statistics/#...