Xg only accounts for shots taken. We had a moment yesterday in the first half when Casemiro headed a free kick back across goal which probably should have been scored tbh but as the pass from Casemiro didn't find a teammate and result in a shot, the Xg for that was 0.