It’s governments with similar cultures and practices, all tackling a relatively new phenomenon.
Coming up with similar laws could just be convergent evolution rather than coordination.
You also can’t discount that once one country has tried it others that we’re considering similar legislation are much more likely to take the plunge if the outcomes in the first country aren’t negative