In Toontown, you usually can't build Cog buildings yourself; the Cogs construct them on their own. It's part of how the game's world is designed to work.
The one big exception comes when you defeat the Chief Justice (CJ). After that victory, the balance shifts, and you're able to create Cogs, Cog buildings, and even launch Cog invasions yourself.