The article says "The public finance authority DGFiP said the AI programme would now be rolled out nationwide, potentially leading to €40m in new taxes on private pools in 2023".
So total revenue is not that significantly higher than €10m.
Another commenter pointed out that having a pool influences the property value and thereby tax, so they should be able to collect the tax yearly, not just once.