I've never really seen the gelatinous cube as silly. Essentially, it's a viscous ooze, that likely gets its shape from rubbing up against walls to feed on organic matter like fungi, algea, or small vermin. Maybe after a while the feeding surface gets a bit irritated, and temporarily loses its...