Turned around, what's the benefit of allowing someone to build something that may potentially break, when the alternative is an easy to fix error instead?
The benefit is not needing to make any additional source changes when you go from using an import to not using it to using it again.
Sometimes you want to comment out something and rerun, and having to do the same with dependencies is annoying. Maybe have a dev vs prod compilation split, with the first allowing unused imports.