Why is my capacity so far off (much higher than expected)

You should take a look at this: [NAS-131728] - iXsystems TrueNAS Jira

And this topic: 24.10 RC2 Raidz expansion caused miscalculated available storage