How can the market trade ahead of news, when it doesn't know what the news is until it is released? See every market reaction to Trump's tweets about the trade war last year, for example.
You don't know, I don't know. There are people who know, there's also the ones who can estimate future events based on likelihood.
If it was as easy as trading AFTER news, we'd all be billionaires.