Google uses an algorithm to calculate star ratings for businesses based on the quantity, quality, and recency of reviews.