Why in Spanish when someone gives or refers to another person a is used for example le did ( a jack ) I don't understand this

  1. Why in Spanish when someone gives or refers to another person a is used for example le did ( a jack ) I don’t understand this.

We use “a” with a direct complement when it’s a person. The main reason is because in some cases it’s hard to know who’s the subject and who’s the object since the order of the words in a sentence in Spanish are more flexible than it is in other languages.