Here's why:
* Immaturity is a noun, meaning the state of being immature.
* Immatureness is a less common and somewhat awkward-sounding alternative, which is also a noun but sounds clunky.
While both words convey the same meaning, "immaturity" is more widely accepted and sounds more natural in most contexts.