You cannot change a shape like a rectangle into something else (except a square). The Edit Shape facility is reserved for "free-form" shapes.
If all that you want to do is change the dimensions of the rectangle, that can be done by clicking on the mid-point of one of the sides of on one of the corners and then dragging the mouse.