攸 supplies the sound yōu unchanged. It also adds semantic flavour:
攸 originally showed a hand washing a person's back — a calm, drawn-out motion. That slow-flow sense underpins all the meanings of
悠: leisurely, long, swaying. Same phonetic in
修 cultivate,
条 branch.