Many people make incorrect assumptions about EPCs and confuse what they represent with what they think they should represent.
The EPC rating is currently a cost-based metric. If the property costs more money to run over the period of a modelled year then the rating will be lower (such as an F in this case), and if it costs less to run over the period of a modelled year then the rating will be higher.
Electricity costs about 3.5 times that of gas in terms of pence per kWh of energy. Therefore if you have a peak-rate direct-acting electric heating system with an efficiency of 100% like the one in this property, then the running costs will be almost 3.5 times that of running a gas boiler, which might have an efficiency of 93%.
There is no question that this property, with its current boiler, is going to relatively cost a huge amount of money to heat.
An electric heat pump however operating with an 'efficiency' (SCOP) of 3.5 or more will run at about the same cost as a gas boiler and will therefore score about the same rating on an EPC, so long as the exact make and model are available in the Product Characteristics Database (PCDB). Savings beyond this are also possible from leverage such as solar PV, batteries and EV smart tariffs.
By the way, at our house it only cost £200 to get gas connected 10 years ago as the gas main ran in front of our house.
However, if the OP were going to complete on this property, it might be worth looking into the cost of getting the electric boiler replaced with a heat pump, particularly as they may already have wet radiators around the house. but they'd need to check how the domestic hot water is currently heated. Suggest Heat Geek as first port of call, and of course the BUS grant is still providing £7,500 towards the cost of installation.
OP, if you intend to rent the property out in the future bear in mind the minimum rating required currently is an E, and the bar is likely to be lifted higher in the near future. If you have no intention of renting it out then this is irrelevant.