Because to learn Latin you usually (at least in the country where I learnt it) have to read Virgil, Seneca, Tacitus and so on. They are not mandatory if you instead want to learn Python.
That was distinctly not the case when I learned Latin. Though it does explain the origin of that mindset.