The Putting on of the Trousers
Hakamagi no Gi (袴着の儀) ceremony
Only five year old boys celebrate this. When wearing kimono was commonplace, boys would start wearing the hakama and those boys from a samurai family would wear a haori (jacket) over the hakama. This signifies that the boys have started their journey into adulthood.
https://press.ikidane-nippon.com/en/a00651/
It seems that this is typically celebrated for boys aged 5, but this took place for Genji at age 3. Perhaps the ages have shifted over the years for this ceremony, or maybe this was an inaccuracy in the writing.

