Torah Temimah cites Shevuos 31b.
Rather, this is the reason of the Sages — they derive it by a kal va-chomer: if one is liable when others administer the oath, all the more so when he swears of his own accord.
A self-imposed oath of testimony that is false generates the same liability as an oath administered by others.