They were favourites due to their roster. Thankfully, games aren't won on paper.
Morocco has what is effectively home advantage, so that's playing its part too. Africa and the Arab world are rooting for them to do what most thought was unthinkable (except for Eto'o).
https://talksport.com/football/1241836/samuel-etoo-world-cup-final-cameroon-morocco-african-nations/