The European Commission says food safety obligations criticised by Boris Johnson were due to rules set by Britain.