When I read these two stories, I think the heroes tried to overcome difficulties and concentrated to do everything. Every legend, there are teaching and idea as well. Depending on the culture of the countries and the religion. So the myths are different but pattern of story is rarely different.