How does doing weight help lose fat?

Lean muscles. As you train with weights you can increase lean muscle development which in turn can aid in calorie burning/faster metabolism. When you are burning calories more effectively, you are more likely to start "burning" fat and decrease your body fat.