Hello,
The Codecov metric and the SonarQube coverage you are comparing are two different metrics.
Codecov shows you the line coverage whereas SQ shows the overall coverage.
I invite you to have a look at this post, you will find the explanation of this difference.
Alexandre.