Keep your cursor hovered over the bottom of the 2nd monitor? It moves. Want to move it back? I have tried everything I could think of to try get it back, I still to this day after 5 years of being on Mac because work forces it on me cannot see the logic or heuristic it chooses for when to move the fucking dock. I swear it's basically random, and it's a daily occurrence for me that I have to just shake my cursor violently to get the stupid thing to eventually move.
The worst part is you can't even disable this dumbass behavior! You can't tell it "Hey, dock should ONLY be on monitor 1", so you just have to live with this anti feature