Almost always, probably really always, my bass lines are things I have 'sampled', 'recycled', 're-used', 'heard before', 'reinterpreted', etc., and sometimes I don't even know where they came from, but they came from somewhere.
And musicians have always copied, always sampled ... it's only the copying technology changing that allows new forms of sampling.