Where did you get the info that it goes down?
When markets go down because of a big event, pandemic, crisis or whatever, all stocks go down in first instance, even the best of them.
If you have a small correction or a daily down movement not all stocks have to go down. As for example: All indices go down 2% but ASML just gave quarterly data and that was perfect, then that could be the only stock that goes up. So news effects this temporarily.
In the long run most stocks go up (80%)mostly with a few exceptions, one faster then another, this is why it is important to have a diversified portfolio and not bet on 1 stock.
For example ASML outperformed the AEX last year, so reletively speaking this would be a good stock at the time, but being a good stock one year doesn’t mean it has to be the next.