Why does the brightness turn down during the sunrise?

Your automatic brightness adjustment is turned on. You can turn it off at System Settings > Displays > Automatically adjust brightness.

rockysandstudio.com