Uncertain. Either a native childish term of onomatopoeic origin, or borrowed from Ancient Greek μάμμη (mámmē).
Practice speaking and memorizing "mamma" and many other words and sentences in Latin.