Baby thumping legs

Steph
Who's baby smacks their legs against the crib mattress and why did you think they do it? Our one baby does it. They are 6.5 months old and he has done it almost since birth.