Case 1: Make a rectangle without a stroke, select it and insert artboard from selection.
Result: Rectangle and artboard size match.
Case 2: Make a rectangle with a 1 pt stroke, select it and insert artboard from selection.
Result: Artboard is slightly bigger than the rectangle. It does not matter how the stroke of the rectangle is aligned.