Mi ha chiesto come mi chiamassi.

Spanish Translation

Me preguntó cuál era mi nombre.

Why is this in the subjunctive mode? I thought being called X was a matter of the objective reality.