Zimbabwe is just one of the example and may not be the best example. I also cited the Weimar German Republic. I can also cite China and a number of other markets, including the USA market.
Any time inflation kicks in, the stock market booms. That is the truth. The fundamental reason is when the inflation is high, people will not keep cash or leave the money in the bank, they need to invest the money for a profit that can beat the inflation. People in China have withdrawn the money and put into stock market, because they have no good place to put their money in.
Who is going to hold cash or savings account when the US dollar is dropping so fast?