The reason why ChatGPT isn't "good at code" is because it just needs more training data and feedback. That's it. And it appears that this is a decision from above to not give GPT-4 that kind of training data (for now). One can guess as to why (...job market).