Hi Amy R,
You are due to pay tax on your freelance profit at 40%, but as you paid this into your pension scheme, you can claim 20% tax relief on this pension payment.
This reduced the unpaid tax to £3690.79.
In addition to this you have met two criteria, that result in payments on account being created.
These are two payments you make in advance of the end of the tax year.
So just as your employer deducts tax monthly from your salary in advance of the end of the tax year.
HMRC are doing the same with your freelance profits.
Ideally, those two payments on account should pay all of the tax due on your freelance work.
Please have a look at the guidance on payments on account here:
Understand your Self Assessment tax bill
Thank you.