For fish, natural light cycles are critical to maintaining their health and happiness. Most species of fish require 8-12 hours of light per day, followed by a period of darkness. This is important for their circadian rhythms and helps them maintain a healthy sleep cycle. If fish are housed in a tank with no natural light source, it's important to mimic their natural habitat as closely as possible by providing a regular light cycle. This will help reduce stress and optimize their overall health.
However, there are times when it may be okay to leave the light on all day. For example, if you have live plants in your tank, they will require a longer light cycle. Keeping the light on for 10-12 hours a day will help these plants grow and thrive. In addition, some fish species, such as those native to tropical regions, enjoy bright, sunny environments and may benefit from a longer light cycle.

https://www.benweilighting.com/professional-lighting/led-underwater-light/fish-tank-light.html
