If you note that what Russia wants is Ukrainian territory (first Crimea in 2014 and then a land connection to Crimea in 2022), that was guaranteed to involve some amount of war. That will give you everything you need to infer the correct direction of causation.
Why do you think Russia wants territory? Why did they suddenly develop an appetite for territory in 2014?