Stark and Rogers got the time stone from another timeline and were able to replace it using that one, so they did keep their promise.
Because the stones can't do that (bring back the dead that the stones didn't actually kill)
There's a somewhat important element of the story in that Thanos was mad, insane, and I think expecting him to have a logical plan is reaching.