Why was the Panama Canal put in Panama?

The Panama Canal was built in Panama because it was easier to build with little of land