MATLAB is not free: you need to pay for a license. Some languages, like Java, are free as in beer, but not as in speech. Companies like IBM have to pay Oracle for the privilege of bundling Java in with their products. read more
Because Open Source happened. Linux happened. The Internet happened. Back in the 80s, language compilers were expensive commercial tools. You could pay $400 or more for a single user license. read more