The platforms lost because they enshittified and everyone left because of it, not because YouTube existed (it already did when they started). Compare the ancient "legacy" stuff that Coursera had to the stuff it has today. Little wonder nobody actually wants what they're selling.
As another comment here said:
> Those courses that were basically “we’re a top university and we let someone record the class from the back” were a literal life changer. Honestly, that was all I wanted.
The moment they stopped doing that, everything went to shit and this is the natural end result.