Because this was their last chance at offering peace after previous acts against his rule.
One way in which Suleiman the Magnificent and Peter the Great are similar is that they both (1) modernized their military. However, both leaders are also associated with reformation. Peter the Great led many military campaigns in Northern Europe and Suleiman the Magnificent vastly extended the Ottoman Empire.
When a government acts against their common interests and/or threatens the safety of the people without cause.