And it explicitly states that it does give them the right to share your code. Copilot isn't selling code; if it were, then GitHub wouldn't let you share the output of Copilot; that would destroy their market. That they allow you to share the output of Copilot with others proves that what they are selling is the service, not the output. The output is, at worst, "shared" code from Github's licensors.
And that license explicitly states that it doesn't give them the right to sell your code.