It’s amazing how dogs evolved to better display their emotions towards humans. In earlier times, it was to provide a bonding experience and ensure their survival by connecting with a potential owner leading to food, shelter and care.
Now dogs use it to show how pissed they are for being woken up.