Cogs are the collectible scattered through every level, and gathering them is what unlocks the game's bonus content. Track down the full set and you are rewarded with an extra endgame scene and additional extras beyond the main story.
If you are hunting the last few, revisit earlier levels — several sit off the obvious path and are easy to miss on a first run.