That's because IntelliJ is creating an (I think) inverted index and dependency graph of your project for code completion/Intellisense and it uses multiple CPU cores to do this as fast as possible.
VSC won't do this to the same extent.
Inverted indexes are slow to create, but fast to query.