Having a sense of humor is a human trait.
It changes as a person's brain and personality changes over his lifetime. What is funny to a 1-year old is not funny to a 10-year old, what's amusing to the 12-year old is not funny to the 2-year old, etc. . . Some babies laugh more easily than others, just as some adults have a great sense of humor while others not so much.