This AP article links the failure to "endemic problems" in Russia.
>>>The destruction of the robotic Luna-25 probe, which crashed onto the surface of the moon over the weekend, reflects the endemic problems that have dogged the Russian space industry since the 1991 collapse of the Soviet Union. Those include the loss of key technologies in the post-Soviet industrial meltdown, the bruising impact of
recent Western sanctions, a huge brain drain and widespread corruption.<<<
https://apnews.com/article/russia-moon-luna25-spacecraft-mission-33c9884c907998f06bf9562be6d47445
There is undoubtedly some truth in the AP statement that there are "endemic problems" in Russia, but there have been many failures of space missions by many countries over the years. For example, wiki has a list of missions to the moon. There were many failures, especially during the early days of the space race.
en.wikipedia.org
Wiki also has a list of mars missions and the outcomes of each.
en.wikipedia.org
With regards to mars missions, the Soviet Union and Russia have had numerous failures, but NASA's track record is far from perfect.