Mine do this too sometimes lol! My fire boy especially. My only thought is bc floors are generally cool and ceilings are generally warmer, that theyre attempting to get to the heat source. They really dont have much of a sense of depth perception at longer distances so they probably think its closer than it really is.

Thats really the only thing ive come up with, i know what youre talking about though.