In some countries, example Spain, it is a requirement for pilots to make themselves known when boarding as passengers.
I do this every time, so do most of my colleagues.
Not for any upgrades ( never happens anymore) but for in case a situation arises that might need assistance.