your object scale is not 1/1/1, you need to apply the scale. You still won’t have nices corners, so what you need to do is rotate it 90 on the X axis to align it with the XY axis, apply the rotation, then in the Properties panel > Object Data > Shape, choose 2D