The refund only creates a record in the store database that store owner gave a refund to the customer. The store owner actually have to manually do the transaction to make the refund (depends on what payment method store is using).
To see if any payment method supports refund or not: Go to Admin section > Configuration > Payment > Payment Methods
Click on any payment method "EDIT"
On the "Edit payment method" page you will see these options