Answer:
Lysosomes originate from the endomembrane system when late endosomes receive enzymes imported from the Golgi apparatus. If melanosomes have a similar origin, then they would arise from an endosome-like vesicle that receives cargo from the Golgi apparatus.