Ratings incorporate things that don't necessarily show up in stats like ball movement/flow related calculations and inside/outside defense.
It's also possible for terrible players to put up good stats if their opponents are as bad or worse, but that won't have an impact on their ratings.