If MariaDB hadn't been there, and as competitive as it was, I doubt Oracle would have played so nicely with MySQL.
Oracle has one goal, and that is to make money. They've realised due to the competitive pressure in this case that they can't abandon the community and go straight into value extraction mode.