The law treats some acts as grave enough that it won't give them legal effect unless a person with knowledge of the facts attests to them. The oath of a witness tends to give the act heft. It suggests you can trust what the witness says.
But what happens when the witness botches the oath?