Most of the time, sampling like this is just fumbling around and happy little accidents. There may be a goal they have in mind, but rarely would you know in advance what the end result should sound like exactly.
That's not exactly true. While there are plenty of happy accidents there's also plenty of times I've taken a sample and looped it knowing full well what it would sound like before I started.
Well, I said "most of the time", not "always". And that's talking from experience (both mine and that of fellow hobby musicians). It's true that sometimes you might come across a snippet and instantly know what you will be doing with it.
I'm talking from experience too. And from experience I found the opposite was true. Most of the time I found a snippet and knew what I was doing with it. Admittedly sometimes it sounded lousier than I'd expected and I thus scraped it but that's not really the same as having a sample and accidentally discovering it sounded good. Usually I'd pick a simple because I thought I could sound good (otherwise I wouldn't have bothered sampling it to begin with). So I think the term "happy accidents" is disingenuous because a lot of the time it wasn't an accident.