No - this is a false equivalence. Transaction processing companies for the most part handle the in-and-out flows as a single transaction. Insurance companies hold on to the premium pool ("float") for long enough that they have time to realize gains from investing portions of it - the inflow and outflow are very separate.