ChatGPT was definitely not some visionary project led by Sam. They had a great LLM in GPT-3 that was hard to use because it wasn't instruction tuned, so the research team did InstructGPT and then took it even further and added RLHF to turn it into a proper conversational bot. The UI was a hacky interface on top of it that definitely got way more popular than they expected.