In short, it comes from the word μωρός (vocative: μωρέ → ωρέ → ρε) (moré) [silly]. In Greek you want to use it to call someone angrily or a friend informally or even begin a sentence - again, casually.