Because they have strategic interests across the globe. From the Russian perspective, taking control of Ukraine would be great, but preventing them from intefrating into the EU and NATO is the real focus. Ukraine can’t take back the occupied lands, and Russia will be able to l outlast Ukraine in an attritional war.