It will be refurbished, of course. Look at the warranty terms and you’ll notice Apple promises to repair phones using new or used parts. Where do the used parts come from?
The display and logic board have a combined value of over $200. Carrier locks are software features.
Keep in mind when Apple sells refurbished iPhones, they only replace the chassis and battery. The display is salvaged whenever possible.