Basically, the US wanted access to the Panama Canal, and since the Canal wasn't yet built, it needed to built it. Originally the US made an proposal (which wasn't yet questionable), but Columbia (at the time Panama was part of Colombia) wasn't comfortable with the proposal, and the US decided to enforce their plan in other ways, so that they still gain access to the canal.