Source code is not what runs
The code a developer writes is organised for humans: many small files, readable names, helpful comments. That is not what gets served to visitors.
A build is the step that turns source into a runnable, shippable output: compiled, bundled, minified, compressed.