Bolting is when a plant prematurely flowers and goes to seed.
Bolting can be caused by a period of extreme weather.
Avoid sowing seed until after the danger of frosts has passed or in very hot weather. Water plants regularly and deeply in hot weather to prevent them suffering heat stress.