Frequently, software developers mistake "bugs" for "features".
If I could ask someone responsible for this at Apple, I'd ask: "Why do you change the user-preferred screen brightness whenever the iPad goes to sleep?" And if Apple has no cogent answer to that, it's not a feature, but a bug.