Hashrate is mainly affected by the price. So any change you see is because of the highly volatile market and the huge market crash that we have had ever since the start of this war (from $70k to $16k).
About a year ago, at $70k we had 22.6 trillion difficulty. Currently, at $16k, we have 36 trillion difficulty. Apparently, hash rate isn't mainly affected by the price.
You are right there are also other factors affecting the hashrate like the introduction of more efficient hardware, manufacturing and more importantly delivering these hardware to miners who filled an order a while ago (this could take months).