It's called a "wet motor" and done to purge any preservatives or oil from the engine before the first start after a check or a new engine is installed. It may also be done to confirm fuel pump or fuel control operation after maintenance and as stated above on rare occasions during a leak check.