The ESRB is entirely voluntary, though Nintendo, Sony and Microsoft require games on their systems to have been rated by it. But it also costs money and takes time, so Apple's ratings, where the developer can just check the rating they want, or even ignore that altogether if they want, is what most companies would prefer.