№ = #
It was a standard number sign in XIX century France, and as such came into Russian typography. It has not changed since then.
Check "Numero sign" article in Wikipedia.
;)