A deliberate trial arranged so its outcome will tell you something. An experiment must be able to disappoint you or it teaches nothing.
Latin experientia, from experiri (to try, to test); a trial arranged to test what would otherwise stay unknown.
It shares its whole root with experience: a trial that stakes something real on the outcome, not a safe rehearsal. An experiment that risks nothing is not really the same word wearing a lab coat.