Atlas Obscura has interesting stories about many obscure topics, and this is no exception. The answer is—they were all used to test hot air balloons before humans went up in them. You can read more about their exploits here.

An illustration of the 1793 flight of the sheep, the rooster, and the duck. LIBRARY OF CONGRESS/PPMSCA.02446