The emergence of economic rationality of GPT