The purpose of NATO is to aggressively contain Russia.
If Ukraine is allowed to join NATO, there will be NATO military bases and missiles on Ukrainian soil pointing at Russia’s largest cities. Russia will then be forced to spend more on defence than it does currently, which can only weaken the civilian economy and create secessionist tendencies within its republics.