The primary purpose of adding gypsum when the clinker is ground is to control the setting time of the cement. Gypsum acts as a set regulator, allowing the cement to remain workable for a longer period. Without gypsum, the cement would set very rapidly once water is added, making it difficult to handle and apply.