After I rotate a layer, the frame bounding box stays in that (new) position, so it is no longer possible to scale the layer exactly horizontally or vertically. In a 3D applications, this technic called : Bake transform or pivot... to align a selection bounding box to world.
If I understand the issue correctly, the Reset Shape Handles option should work here. Choose Format > Shape > Reset Shape Handles to reset the handles.