For Garry's Mod to work, you need at least one Source Engine game installed—for example, Half-Life 2, Team Fortress 2, or Portal.
Since Garry's Mod runs on the Source engine, having one of those games provides the necessary assets and foundation for it to function.