Thing is that Messi and Ronaldo score so get the plaudits.
Xavi and Iniesta better footballers than either and they are never in GOAT conversations.
They are in the greatest midfielders conversation and were the best midfield duo of the past 20 odd years.
I think it was Zidane though who said that being the best forward in the world is harder than being the best midfielder. Forward is the glamour position, great goalscorers are the hardest thing to come by in football. It's not like Messi was just a goal poacher, he had insane assist statistics and was the complete footballer, capable of doing things literally no other player could do, on a consistent basis as well.
Im fairly sure both Xavi and Iniesta would laugh at the idea of them being better than Messi. Both consider Messi the clear GOAT.