Because this is the situation now, on gambling sites, 21+ is required but in prediction markets ( which we are aware are also like gambling) 18 years old is allowed.
In most countries that allow gambling, 18 years and above are allowed to gamble on the gambling sites. It is United States and some few countries that make it 21 years and above.
About the United States
Prediction markets are saying they are not gambling sites. Also they are not regulated by gambling sites. They are regulated by CFTC.
So back to the question, what should be the legal age and why?
If trading can be for 18 years, I do not see any good reason gambling should not be for 18 years. These are the two riskiest things that people can use their money for that can cause significant losses.
In gambling and trading, all ages groups are losing significantly as long as they continue to do it.