What Do Language Models Learn in Context? The Structured Task Hypothesis