Probably just [mimicking bitcoind](https://github.com/bitcoin/bitcoin/blob/master/src/wallet.cpp#L1350-L1351).