Music, in today's society, is a commercial product sold by professional performers to a passive audience.
In the past music was integral to all aspects of life and was actively performed in all situations, especially when working.
We all know about sea shanties but singing was involved in many occupations. In the Scottish Highlands apart from lullabies to get children to sleep there were songs for rowing a boat, fulling cloth, milking a cow, churning butter etc.
Military practice was often accompanied by music to help in training particular manoeuvres and steps with pikes and other weapons. And as a method of signalling instructions and other information on the battlefield.
Shepherds are famous in most societies for playing pipes of one sort or another and of course lead animals had bells around their necks so even they played music. Fox hunters and others, where they are allowed to continue, use a variety of horns and bugles.
Add to this all the incantations, rituals, hymn singing and our ancestors were actively involved in music at all stages of their lives.
Regarding whistles I believe the Guanches of the Canary Isles had a whole language of whistles.