Sadly, the EU is not a level playing field, with some countries ignoring directives/obligations when it suits them - with impunity.
Health and Safety regulations - for example - don't really exist in Malta and Spain, where builders often don't bother with scaffolding.
Your EHIC card in these countries often won't get you the mandatory medical treatment that you are entitled to, either. That is - the same as that available through the NHS.
Many other EU members adopt similar attitudes - unlike the UK which fulfills all its obligations. Perhaps Brexit isn't such a bad decision after all.