Doesn't really belong to the crypto.
No other implementation does that and it looks weird, I see nothing meaninful here.
It doesn't belong to crypto in any way other than it uses hash function internally.