Welcome to iMore! It's supposed to change when you have auto brightness on. It changes according to the light in your environment. If the lighting changes, it changes with it. I can be sitting in my chair with a lamp beside me. If I lean forward, the brightness changes because I moved to a darker spot.
You can stop it by turning auto brightness off.