Pretty sure the leak also lead them to release the Source engine's code, which was wildly successful.
You cannot compile that and get a fully working engine.
It's a bit like claiming the Win32 API is the Windows NT kernel.
You can read more about the modding workflow here: https://developer.valvesoftware.com/wiki/My_First_Mod
If you are familiar with the latest version of Unreal, then it's like having access to the "Games" project in your solution and only some headers from the "Engine" project.