The affinity for acidic dyes is primarily due to the presence of basic (positively charged) components within the cell or tissue. These basic components are often proteins, such as cytoplasmic proteins, that readily bind to the acidic dyes. This is because acidic dyes are negatively charged and are attracted to positively charged molecules.