Predictability Shapes Adaptation: An Evolutionary Perspective on Modes of Learning in Transformers