wiktionary
ref
From spice + -y, attested since the 16th century.
etymonline
ref
spicy (adj.)
1560s, from spice (n.) + -y (2). In reference to flowers, breezes, etc., "sweet-smelling," from 1640s. Figurative sense of "racy, salacious" dates from 1844. Related: Spiciness.