What's with all the "unnecessary" data in Android 6?
Runtime environment is different... Marshmallow pre-compiled applications and stored them for use, Nougat compiles on the fly as needed using a JIT (Just In Time) method. Seeing a gain of a few GB is not unusual after upgrading to Nougat.