Actually, it did have a point. Not so much the sex itself, but the bandit's seduction of the princess was a major plot point.
I admit that it was pretty clumsily done, editing-wise, but where else could it have gone in the movie?
I guess it's just one of those times where a writer has to settle for doing something awkward 'cause there's no way to fix it.
"The Beasts know much that we do not." -Ancient Jedi proverb