Necessary to lose fat? No. Necessary to look fit after losing the fat? Yes. If your goal is an aesthetically pleasing form then you should find a way to do some sort of resistance training. If your goal is simply to drop bodyfat even if it is at the expense of your muscle then no it doesn't matter much.
I hate weigh lifting and only do cardio to lose weight. I haven't lost any muscles that i can tell. I swim 5 days a week which has shaped my upper body and arms.