Because once you're on stock movements under a stock location, there was no way of going back to stock locations listing(except finding/locating the link on the sidebar in configuration menu), which was time consuming for the client. So, it'd be better if there was a button which can take you back to stock locations under page actions(which is easy to locate and saves time). 

This code was added considering more of UX.