How does artificial light attract fish?

How do various fish species affect the ecosystem around them (plant life, other animals , etc)?

How does rainfall affect a fishes habitat (water quality , plant life, fallen trees)?