The causality is wrong here. You chose to work for free with no reward, and _then_ companies found your work and used it. Presumably you started out working for free because it was intrinsically rewarding (otherwise: stop doing work you hate for free?).
I chose to do it for free to help other people. And picking a MIT license does the opposite.