The Boer War was a divisive issue in British politics at the turn of the 20th century.
It seems likely that some traditional Liberal voters may have felt unwilling to vote against a popular, patriotic war in 1900 and consequently supported the Tory at that general election.