Poor Route Availability may have been a factor (RA7, compared with a 47 with RA6 and a 31 with RA5). In fact, I believe that the Peaks are still, albeit by a narrow margin, the heaviest diesel locos to have run on British tracks (the 46s were marginally heavier than the 45s)
Ironically it's the other way around 45/1 is RA6 with a number of 47/4s being RA7, especially if fitted with long range tanks. Yes, most 47/4s are RA6 before we get into semantics (although 1988 platform5 book shows all as RA7, but don'tthink that's correct).
Don't forget quite a number of 47/4s had been withdrawn by the time the last 45s went.
It's probably about standardisation, 47 was standard traction known by most drivers, by this time 45s were banned west of Bristol in case no-one could be found to drive it back. Also the later 47 conversions were all parallel machines, which were more reliable than earlier series parallel machines.
The 45s became expensive to maintain due to their bogies, which were prone to cracking and then required expensive works visits. When final ones were switched off BR was quite reluctant as there were insufficient locos of type 4 power with ETH anyway and sometimes left a train with a 31 instead of a type 4, got there the following week, I expect!!!
To be honest the 45 was the better passenger loco (its Crompton Parkinson electricals were superior to Brush and they had 5 field weaking stages making them easily match a 47 for acceleration and gave the 45 superior hill climbing ability) but, in the end, there just weren't enough of them and they were expensive to run.
A little anecdote, people often asked Gloucester drivers (who basically knew almost all diesel traction in England/Wales) what was the best type 4s, answers invariably came back as 45 best, 50 second and 47 last. Amused me as upset lots of people, particularly those who hated 50s!!