There are other ways to increase an airplane’s drag that have fewer side effects than trailing edge flaps do, and so the major reason for flaps is lift, not drag. Just how they produce that ...