That's because your phone had already got a newer but not installed version of Android from that built in installed version.
When you'll install it the extra files and the older versiob will be deleted and then your phone system memory will drop to almost 10gb