What benefit did Nicaragua have in building a canal through its land?

There was no canal ever built through Nicaragua. However, there were numerous attempts to do so, starting with a survey for a canal performed by the United States in 1850.
Copyright Wanderlust World © https://www.ynyoo.com