I'm currently working through exercises, and came across a sentence that uses dative case in a way that I am not familiar with. I was hoping someone could explain it to me.

Каждый из учеников получил по книге.

I always thought 'to receive' took the accusative case? What is the grammatical difference/meaning here?

As always, thank you!