Scores are weighted according to the number of votes. The documentation says :
Why use a weighted score rather than an average rating?
If we use the average rating, a photo with one 5/5 rating will be considered as having a better rating than a photo with 500 ratings and an average of 4,8/5. In a competition setting, this is not relevant.
See here :
https://doc.piwigo.org/comments-and-ratings/managing-ratings-votes/?h=score#displaying-ratings-in-your-gallery