In that world, the school only has to get the students to do a "hello world" in python and apply for the right jobs. Such a school is very cheap to run, and very lucrative as long as a decent proportion of students fit into the desirable categories.
The students themselves usually aren't aware how desirable their application is - and therefore believe the school is their route in rather than a few youtube tutorials and a direct application.