Elon's purchase offer was in 2025, after the success of ChatGPT showed that OpenAI's IP (much if not most of it developed after 2019) could be commercially valuable. I think it is also debatable whether Elon's purchase offer was in good faith.
It was not clear in 2019 that OpenAI's IP would ultimately be worth billions. That was well before the current AI boom.