I find it hard to find actual literature on this, so this is just my reasoning. Safranin is a basic dye (ie positively charged). I suspect electrostatic interactions with negative charges on phospholipids in the inner membrane are responsible for its retention.