The market does not act correctly or incorrectly. It is often irrational, as Newton said, but it does not have to act as we expect because there are always things that escape us.
Regarding the specific case you mention,
So the question is: has the market reacted incorrectly? In other words, is the market pumping too much to the point where the Fed will be forced to increase their hawkishness come next meeting? Employment numbers are still good, meaning the Fed theoretically could afford to scare the market even more.
What the Fed is trying to do is to tame inflation, which by raising rates risks having a negative impact on economic growth and stock markets, but for stock markets to rise if inflation can be curbed would be the best of both worlds.