European government protects the growth of food by giving subsidies, in the form of direct payments or tax credits, to the local farmers even though imported food would be a cheaper option for them.
The main reason behind this is to keep the farms running by encouraging the local farmers to produce more crops which will help them to expand their agricultural industry as well.
Another reason could be that they will have enough food if the imports are ever cut off.