Apple/little person of the eye
Here’s what it means
The person or thing was precious and carefully protected, like the sensitive pupil of the eye.
Why the Bible says it this way
An idiom is a familiar phrase whose meaning comes from the whole expression, not from reading each word by itself.
A helpful detail: The Hebrew picture refers to the tiny reflected image seen in the pupil and to the eye’s guarded center.