Socrates is saying that he would rather die than live a life governed by self-deception. He is on trial for seeking wisdom, for trying to understand what is real and living in alignment with it; for seeking to establish a rational basis for what to care about, and what to do. For seeking to express his authentic soul through his societal self.
Aligning what we do with what we (deep down, undistracted and undeceived) care about, rather than with what unreal deceptive influences tell us to care about, is what joins up having resources with living a good life.
It was so important to Socrates that he rather died than be prevented from doing it. So should it be for the rest of us. There’s bugger-all benefit in being rich if you use those riches in a miserably misaligned manner.