Yep I was mistaken, the code is intentionally set to allow retals to bypass the <50% ks rule.
I guess the justification is in the error message when you try attacking <50% without a retal:
"To crush a kingdom half your might without just cause would bring shame upon your banner. The assault has been aborted."
Having a retal becomes the "just cause", allowing the bigger kingdom to attack without shame lol