The reasons are different:
In the 17th century, Russia fought with the Polish-Lithuanian Commonwealth simultaneously with the participation of that in the Thirty Years War.
In the 18th century, Russia found itself bound by allied relations with Austria (1726) and precisely because of this it became a participant in the Seven Years’ War (1756-1763).
At the end of the 18th century, Russia took part in anti-Napoleonic coalitions.
One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.