Emergent learning in physical systems as feedback-based aging in a glassy landscape