tails in a bucket of standing water, the best answer is that you’ve likely discovered rat-tailed maggots, the larvae of hoverflies. They look bizarre, but they are a known, common organism associated with stagnant, dirty water—not miniature swimming rodents.
Dump the water, scrub the bucket, store it upside down, and check the rest of the garden for other water-holding containers. And if you happen to notice bee-like hoverflies working your flowers later in the season, you can enjoy the odd satisfaction of knowing exactly what those creepy little “swimming mice”