Weight loss does not necessarily improve VO2 max because VO2 max is a reflection of cardiorespiratory fitness, not watts or watts per kilogram (w/kg).
Weight loss may improve your body composition, but it won’t necessarily do anything to your heart, lungs, or muscles – unless you’re losing muscle mass, in which case your VO2 max could even decrease.