A "quick" search of the forums would lead you to many dozens of posts about this: Quick Layers is the sole palette whose position and open/closed status is not memorized in the Work Environment in your version. Very old complaint / wish.
😞
Karl
One of the forum moderators
AC 27 USA and earlier • macOS Ventura 13.6.9, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB