The relationship between 羞 and 醜
羞 didn't originally mean shame/shy and 丑 didn't originally mean ugly.
丑 is originally a hand with curled fingers, later borrowed to become an earthly branch. Ugly, and all its associated meanings like disgrace, shame, and even clown were originally 醜, which became replaced with 丑 in 'simplified' Chinese. I believe 丑 was borrowed as part of 羞.
羞 is a hand 手 holding a lamb 羊, to offer it as a sacrifice or for food, originally meaning &quot;offering&quot;. The hand got changed into 丑, which doubles up as phonetic component.
Offering is now written as 馐.
羞 earlier on had its meaning shifted to become shame or shy, possibly because lambs and sheep are shy and timid creatures, while ugly was still written as 醜.
https://www.zdic.net/hans/%E9%A6%90
https://www.zdic.net/hans/%E7%BE%9E