Controversial proposals like Chat control are often pushed by hard lobby through the current eu presidency state because of their possition. It is likely that if Denmark wasn't heading eu at the time they would have little to do with Chat control. Also likely they were one of the more resilient countries to propose this.
Some people still don't have a clue that it is the almost the entirety of EU member countries in Europe that are rotten and are not doing particularly well.
The only country in Europe that is the exception is Norway which is not part of the EU.