This behavior of emptying out the contents is probably something only a naive child would do.
So, Keke doing this is likely just an act.
But she's not a born actress; she's overacting.
She must have had a private chat with Lian Xinying, and after receiving the red envelope from her, she took it upon herself to empty the contents to show Xuexue that there was nothing but money inside.
This seemingly proof that there was nothing else in the envelope is akin to "the truth behind self-deception."
Inside the red envelope Lian Xinying gave Keke, there was a short note.
It's meant for Keke to deliver to Yan Ye.
The note was stuck inside the envelope with a grain of rice, so it didn't come out when Keke emptied it.
Lian Xinying thought of this method, thanks to Yan Ye.
In the past, Yan Ye used to give Xiaocheng a red envelope containing a piece of paper instead of money.
Now, she's using this method to contact Yan Ye out of sheer necessity.