The purpose of our holy and righteous God was to save his church, but their sin could not go unpunished. It was, therefore, necessary that the punishment for that sin be transferred from those who deserved it but could not bear it, to one who did not deserve it but was able to bear it.
God never intended for us to be left to pray on our own. God never changes His purpose, but He often does purpose a change.