How do i declare nested ref?

I know that reading nested ref will unpack automatically, but I don’t understand why assignment will also unpack.