Why does ChatGPT force you to install Python to download docx or pdf files?

I was in an antique shop yesterday. I helped the seller make, with the help of ChatGPT, an application for state subsidies. I promptly told him to send me the document in docx or pdf format so I could list it.

And what did ChatGPT do? He sent me code in Python that converts the text from the application to docx. The problem is that the seller did not have Python installed, and he did not know how to use Python, and above all, the laptop was a bit old, did not have much space and did not work with Python installed.

Well, the seller gave up.

What do we do with this problem that occurs in the case of thousands of users who do not know Python and have not installed Python? How is it that GROK can generate docx and Python files, ready for download, and ChatGPT cannot?

Here you have a very good application, which does this perfectly. Automatically convert any file to docx with Python and automatically download the file. How come after all this time, ChatGPT forces and forces users to install Python to download a poor docx file?