Stellar evolution

Why is mass loss especially important during giant phases?