Because bitcoin is part of the economy and economy is always affected by wars.
It is not just bitcoin that gets affected by wars, mate. Everything is affected. Even fiat currencies may experience declines due to wars. Inflation will definitely affect them. People need money to ensure their safety hence why bitcoin might see a decline but as you see it recovers because there are investors that are just waiting to buy bitcoin in a cheaper price.