Milk has long been used to describe thick white liquids, as in milky sap.....milkweed which has white sap..
Also used to describe something white....milky skin...milk glass, a white glass...milk of magnesia.
Check wikipedia which says using milk or milky for non milk has been around since 1300.