Mirin and Sake

Why are mirin and sake used together in recipes? What does each ingredient add to a recipe that the other can't?