It's a way to add friends. You can also add anyone you've played with as a friend from a separate menu without the need for their friend codes. We recommend keeping an eye on your kids friends lists to ensure they remain safe online.