Addendum:
Now that I have searched the forums, it seems that there was already talk about this in the past and someone from Larian responded that this is not a bug.
I still believe this to be either a bug or a bad design decision (if this really is WAD). I was playing as a morally good character (with the Hero tag, for example), I received no choice on this matter and yet when the ending cutscene started, I was told - completely unexpectedly - that my character and his race basically enslaved the world, which broke the immersion for me and left me with a sour taste.