Amazon voluntarily requires all USB-C cables sold to be USB-IF certified, starting in 2016, after the majority of cables for sale were exposed as being noncompliant safety hazards.
There is no EU law requiring any retailers to care, so far as I know, as long as the unsafe cables don’t have USB-IF logos printed on the connectors.