Inner
不 supplies the sound for simplified
还 — bù shifted to hái / huán, with significant drift. The simplified form replaced the much more complex traditional
還 (which had
睘 inside, the original phonetic) with just
不 to keep the character writable. The 'not' meaning of
不 is incidental — it is read here purely for its sound value.