What is the logic populating the compiled sql script under target/run/

There are usually two folders sitting under the target/ folder. The target/compiled/ folder hosts the compiled files after the dbt compile command, and the target/run/ folder hosts the compiled files after the dbt run command. Just curious, what is the logic that is driving the creation of compiled files under target/run/? Thanks!