Why are my apples brown inside?

Why are my apples brown inside?

Internal browning of apples is more common in heatwaves, and some varieties are more prone to this distressing condition than others.