Yaarel
🇮🇱 🇺🇦 He-Mage
While we don't really know the origin of ogres in mythology to me they always felt too close to hill giants.
Ogres are a blend of traditions. Even so, the name "ogre" derives from the Latin word "Orcus", which is the name of the underworld in Roman folkbelief, analogous to Greek Hades (and D&D Shadowfell).
A possible understanding is, the ogres are monsters from the underworld sent to punish oath breakers.
Both orc and ogre derive linguistically from "Orcus".
Probably there is an affinity between the underground Orcus and the earthy nature spirits, such as giants.