It’s nice to give people things! In Japanese, you put に after the person you’re giving something to.
When you receive a gift, you put に after the kind someone who’s giving you the item!