On the Origin of Environments by Means of Natural Selection