Why does SonarQube need to compile the code?

A post was split to a new topic: C or C++ analysis for 3 operating systems