I think he had a hunch, and maybe in his mathematic mind he got to the right answer by the wrong path
But yes had him not pointed it out maybe it would have been relegated to a mathematical curiosity or something
I think there's a deeper (but simpler) reason for it, besides the way Wiles proved it