hiding (n.1)
"concealment," early 13c., verbal noun from hide (v.1). Hiding place is from mid-15c.; an Old English word for this was hydels.
hiding (n.2)
"a flogging," 1809, from hide (n.1), perhaps in reference to a whip or thong made of animal hide. Old English had hyde ðolian "to undergo a flogging," and hydgild "fine paid to save one's skin (from a punishment by flogging)." The English expression a hiding to nothing (by 1905) referred to a situation where there was disgrace in defeat and no honor in victory.