It's not due to the infection itself. Locals are less efficient in acidic environments (such as infected/poorly oxygenated tissue) and if they can't reach the target nerves (such as when one injects in an abcess).
One way to improve this is to mix with a base to increase the pH.
One way to improve this is to mix with a base to increase the pH.