Right component supplies the sound (gǔ → yù, a regular Old Chinese drift between velar and zero initials in the same rhyme).
谷 itself depicts water flowing out of a valley mouth, which adds a strong semantic echo: bathing was originally done in valley streams. So
浴 is etymologically 'water flowing through a valley = where one bathes'. Same phonetic in
欲 (desire),
俗 (common),
裕 (abundant).