(I don't really believe this, because it clearly does not describe the chart, but it makes sense and I want to understand why it doesn't work like that.)
[1] https://www.statista.com/statistics/1277195/nyse-nasdaq-comp... [2] https://www.federalreserve.gov/releases/h6/current/default.h...
In other words the actual 'money' is a transactional grease for the wheels of commerce- notational/bookkeeping mechanism.
The sale of Apple (the largest value stock in America) as a whole probably couldn't be accomplished in cash only, but even if it was, it'd be mostly notational numbers in an account somewhere and wouldn't 'flood the market' with dollars and crash the value of the currency.
But more people wanting to hold AAPL instead of hold cash absolutely will reduce the amount of AAPL stock your $1k is able to buy, of course
We're talking about the effect of wealth holders wanting more of their investments in stocks or more of them in cash on the USD. An increase in demand for the liquidity of currency holdings, or an increase in demand for stocks due to perceived improved returns could affect the dollar through knockon effects on availability of credit, but the interest rate for that credit is the price of the bit the Fed fixes.
People are selling in anticipation of the market going lower, to cover debts, to take advantage of lower asset prices, opportunity costs, margin calls, etc.