MATLAB: Rotation for any 2D rectangle

rotation

Why it always take (0,0) cordinate as a reference to rotate any 2d figue at any point ?
Related Question