There isn't any such religious requirement other than that. It follows only from the rule that when a Muslim is given aman by the disbelievers they are bound by a pact, and breaking of the contract or showing treachery is haram.
وأوفوا بالعهد إن العهد كان مسئولا
And fulfil (every) covenant. Verily! the covenant, will be questioned about
— Quran 17:34