Children’s clothes are withdrawn from the market for the same reason:
“The product poses a risk of strangulation and injuries due to the presence of cords in the neck and waist areas. The product does not comply with the relevant European standard EN 14682.”
https://www.productip.com/kb/academy-home/productip-library/dangerous-drawstrings-and-cords