Creating an external enemy distracts from internal problems that they say "the country is threatened by external danger" and "Russia is on the verge of war" etc.
Media propaganda now also does quite a lot for this. Russia is increasingly settling in crisis and devastation there is a possibility of many internal conflicts and contradictions, and the external enemy unites the people and distracts them from real problems within the country.