Pivot point changes location between Edit and Object mode
The issue is that you are using the Median Point as the Pivot Point to to rotate. Select 3D Cursor:





Here are some of the differences using different pivot points: