It was centrally located for the time, but it was still established with the idea it would have coastal access.
And it was a decent location that followed the European model of having the capital not on the coast but inland enough to defend. Caracas matches that location as well.