Confused baby eating!

I saw someone I know post pictures of their baby so I scrolled through them! Her baby just turned 6 months old and her mom gave her a cake. Is that normal? Do 6 month olds really eat birthday cake? I thought we were supposed to wait awhile for that! First time mom and I am so confused on some things 😂