Plant physiology. It varies by plants. But generally in vegetables such as the brassicas like broccoli, cauliflower, cabbages, lettuces, etc., the higher temperature brings rapid maturation and development of flowers. They open quicker and elongate faster too. So you have smaller heads unlike during the fall, late winter to spring when you get bigger heads. If summers are cool, then the head can be larger.