That’s not the state. That’s a selfish motivation which is individualist and modern-times.
Socrates, via Xenophon (so really it was Xenophon who lived in a different century) was arguing (using Socrates’ voice) that the State should train people but since it does not, you should train yourself to be valuable for use by the State.