"But" functions as a preposition meaning "except" when used with "nothing/none/nothing". "Nothing but water" means "nothing except water". Option B "than" would require a comparative structure. Options C and D don't convey the intended meaning of exclusion.