If your local branch and the branch on GitHub diverge, they need to be merged. If you pull using the console it will tell you that, apparently VScode does this automatically?
Anyways, nothing to be concerned about. If you're annoyed by the merge commits, you can configure git to "rebase on pull", google it, you'll find instructions pretty quickly.