why not dieses milch?
Because „milch“ is feminine; the ending of „diese“ (final „-e“) has to match the ending of the feminine definite article „die [Milch]“. You use „dieses“ for neuter nouns, such as „das Gemüse“.