The score says how it ended. xG says how it should have ended: it is the sum of the chances each shot was worth, not an opinion about the game.
The score matched the game: Nice was the better side by chances too.
Nice: +0.9 for the season (14 in the table). Lille: +3.9 (4). The gap between points and xPTS is built from matches like this one.