For reasons of security, he settled a few miles inland from what is now San Juan.

Does it follow that "As he didn't really care about security, he randomly chose a spot to settle down."?
no