Here's why:
* Swore is the past tense of swear.
* Sworn is the past participle of swear.
In this sentence, we need the past participle because it's used with the helping verb "has".
The correct sentence is: The bailiff has sworn the witness at trial.