He wanted to demilitarize Ukraine and not just prevent them from joining NATO. He also wanted complete control and recognition of the occupied territories.
When people focus on NATO, they really ignore how Putin talks about delegitimizing the entire Ukrainian state.