Main reason? Probably bored. Second main reason? To get Rory and Amy's attention... But you have to remember that this is the "future" doctor who is doing these things, not the present doctor. So he probably had to get their attention in a way that wouldn't disrupt the timeline or cross his personal history.