They may revert to this kind of behavior when they're bored or have nothing else to do. Sometimes it's almost like they have a little in-joke with themselves. At other times they get entertainment simply from acting strange. The obvious drawback is that outside of their own little world other people think they're acting odd.