Dear student
For a rectangle, each angle is 90 degree
For a circle, angle in a semicircle is 90 degree or converesely if the angle formed by a line at the segment is 90 degree, that line is then the diameter of the circle
For a rectangle, the diagonal forms a 90 degree at the segment of the circle, hence the diagonal is the diameter of the circle
Regards