Kicking The Bucket
I sort of forgot that Wikipedia existed; how very 2004 of me.
The OED describes as more plausible the archaic use of "bucket" as a beam from which a pig is hung by its feet prior to being slaughtered. To kick the bucket, then, originally signified the pig's death throes.