We were told by our guide that the mosque has a fancy water drainage system, including some drainage paths through wall adornments. I imagine these holes are part of the less pretty part of the system. I don't have a good picture of the well integrated part of the system.