I don't see how this is beneficial to them
But whatever, free stuff
The same reason that Autodesk hands out full versions of their software for free and why Adobe doesn't really care about piracy of their products to an extent.
When people learn how to use some software suite and get comfortable with it they will want to use it in their professional careers as well. If you hire ten people who all know how to use Photoshop or AutoCAD then you buy the software license for that, and that's where the real money comes from for these companies.