not sure where you're looking, but W3 gives Etymology: Italian capriccioso and M-W online (11th edition) points to caprice, which has French, from Italian capriccio caprice, shudder, perhaps from capo head (from Latin caput) + riccio hedgehog, from Latin ericius (AHD4 agrees with this, no perhaps)

W3 glosses caprice with: basic meaning: head with hair standing on end, hence, horror, shivering, then (after Italian capra goat), whim

anyways, capriciously speaking, this is all somewhat remindful of a hedgehog! (Dinsdale!)