The iguana didn't choose to develop the structures that help in its survival, but rather the fact that these structures helped on survival means that the individuals that had them were the ones that got to have offspring, and these characteristics became the norm.