When a background shape is in focus it comes to the foreground covering the shapes that are on top of it.
That is by design. If you deselect it it goes back to it's layer.
That is by design. If you deselect it it goes back to it's layer.