Bike Shorts and Metal Eyelets
I believe the eyelets are there to allow water to drain out of the pockets. There's probably no practical need for them unless you ride in torrential rain.

The manufacturer may include them to give an impression that the shorts will make you prepared for all possible conditions, or they may be trying to mimic the style of board shorts (as suggested in a few of the comments).