Because they had Mir under a CLA which meant Canonical (and only Canonical) could offer it under different terms, which included proprietary licences.
They can't license Ubuntu any way they want, because Ubuntu is 99% software which comes from (and are owned by) other sources, not Canonical.