Master Oogway said "There are no accidents" and "There are no coincidences in this world". By this he means nothing happens without a reason. Everything was preplanned and it was meant to be like that.