get_the_category return empty inside loop

I’m creating a custom template for my website and I’m currently using this code in order to loop to my multisite worpress and get the latest posts:

Inside the template_part the theme is trying to get the category for the post but return an empty array.

How could I get the category information inside the loop?
What’s wrong in my code?