With cloth simulation, which is more work than it might seem. It's not always easy to keep the fabric from penetrating the character mesh, so it requires several simulation passes with adjustments every time until it keeps the illusion of real cloth.