It might have just been that it was later in the day, so your taller in the morning
While we are lying down in a resting position, the spine is said to “spread out” or decompress, so when we wake in the morning we are taller after lying in bed all night.
I don’t know if this is the correct answer though. I just heard that people are taller in the morning in this article.
Hope this helps :)