To Be Right
To Be On Target, To Touch, To Hit
intransitive verb, godan verb
あたる
当てる is all about WHAT. What was guessed correctly. Was it a color, was it a number, was it an age, was it a name?
当たる simply states that a correct guess was made. It doesn't mention what was guessed correctly because it's intransitive.