the purpose of a gutter is to direct the water to areas where it can seep into the ground without damaging the house (while carrying away leaves and other things that would rot and damage the roof), at least where I live, a motor in the drain pipe would slow down the gutters in its function, which you don't want to slow down in some of the rain you get in Denmark, and finally would leave it open to more easily blocking the drain. Of course one could put a guard up on the gutter to keep large things from coming down but as I understand it gutter guards aren't really a good idea https://www.cleanproguttercleaning.com/are-gutter-guards-wor... (from a company trying to sell gutter cleaning services so maybe should be taken with grain of salt but the arguments sound pretty reasonable) and at any rate I believe would still have to let things through that would be problematic for the motor to have through.
So essentially having a motor in the gutter for generating energy would mean the gutter could no longer be able to perform its function as a gutter and a new way to handle that would need to be devised.