I think you're misunderstanding the terminology and misreading the graphic.
It's telling you that 8GB is how much of your 512GB is currently used for stuff already on your phone. That is: the OS, your apps, files used for those apps, downloaded files, pictures, music, whatever you may have.
You have 504GB of storage left to use.