Because of a compound called benzaldehyde and very likely smaller amounts of close derivatives. Benzaldehyde is present in cherries and almonds.