Yes, I have this kind of habit too. I always rub my eyes especially the corner of eys when I wake up in the morning unconsciously. But it does not happen every morning. I found out that I always rub my eyes when my eyes are dry, or especially when there is some crust on the eyelids. Gentle rubbing could help tear production and lubricate the eyes. It can also relieve the stress, because pressing on eyeball could stimulate the vagus nerves which will slow down the heart beat. But you should know that long time rubbing or rubbing hard might cause eye pressure increasing. Besides, hands are usually full of virus and bacteria. Rubbing eyes might spread the virus or bacterial into eyes, resulted in eye infection. So it is better not to rub eye. If you do need, keep in mind that you should wash your hands thoroughly and rub your eyes tenderly.