Firebase registration emails goes on spam

In my Ionic app I use Firebase for authentication. Often, the registration emails that are sent to the users, goes to the spam folder, why? There is a way to prevent this?