Why there are holes in Flywheel?

These holes are for balancing purpose. If the flywheel is not balanced, then during high speeds, it will generate unbalanced forces on the shaft on which it is fitted. By removing some portion of the flywheel in the form of these holes, it gets balanced.