For 3D vertices all UV-vertices are selected… to handle this differently: split you model or in
in 3d-view select all veritces and then disable UV-sunx (top left in UVeditor)…
There is not one second you could get back… but you learnt something today and next time maybe just have a different look at such a problem… ( … time for a pause… well there are so many buttons… let’s try one )
There’s also a faster way to align - select an edge in the UV Editor, press F3, type in Align, right click on Align X and Align Y and choose Add to Quick Favorites. Now you can just press Q to access the Align operator, which does it perfectly in one click