Marco Polo was travelling with a large and well armed Mongol diplomatic mission, with a Mongol Princess travelling to marry the Ilkhan in Iran. No doubt the leaders of the diplomatic mission would have access to high level Sumatran leaders with information about countries the Mongols might consider invading. I note that Sumatran leaders might want to give the Mongols the idea that they should conquer Java before conquering Sumatran countries.
Did Marco Polo have such high level access or did he have to ask private Sumatrans he met?
The port where Marco Polo was in Sumatra may have been hundreds of miles from the nearest part of Java. The strait between Sumatra and Java is only about ten miles wide at the narrowest. Legend claims that an eruption of Krakatoa destroyed a former land connection between Sumatra and Java. The Sumatrans should have been very familiar with Java.
Marco Polo could have heard stories about the much larger New Guinea and Australia, also southeast of Sumatra, and mixed them up with the much more numerous stories he heard about Java. Or, if Sumatrans wanted to encourage the Mongols to invade Java instead of Sumatra, they might have exaggerated the size and wealth of Java.
Sumatrians living in port cities would have heard from sailors in shps from China, the Philiippines, India, Iran, Iraq, and Egypt, stories of the Mongol conquests of China, and Iran, and Iraq, and Mongol raids into India, and wars in Syria between Egypt and the Mongols. In short, they would have known that the Mongols had conquered a very large part of the world known to them in only a few decades.
I note that there should have been a number of larger and smaller kingdoms and states in Java in 1292. The next year, 1293, the Mongols invaded the Javan kingdom of Singhasari, and the lord of Majaphit helped them defeat Singahsari, and then turned on them and drove them away, founding the Kingdom of Majaphit in 1293. Majaphit would eventually rule all of Java and claim over lordship of all Indonesia.
Perhaps one or more Javanese Kingdoms in 1292 were larger and more powerful than any kingdom in Sumatra. And it is also possible that Marco Polo could have learned about the Shailendra Dynasty which fell in about 1025, 270 years earlier, but had been very wealthy and powerful.