You have to passwordpass editMode mode on get(
) method.
See the function signature:
Magento\Catalog\Api\ProductRepositoryInterface::get($sku, $editMode = false, $storeId = null, $forceReload = false)
$product = $this->productRepository->get($sku,true);