It doesn’t really, which is why you might have to overpay fees to have a high chance of getting in the next block, and why confirmation can take longer than you/your wallet estimated.
RBF let’s you increase the fees you pay if you realise your initial bid was too low for the confirmation time you were looking for