Do Animals Have Any Sort of Accountability?
The animal kingdom may not have been granted 'vicegerancy' or 'trust' (33:72) on planet Earth as humans were, but it is quite possibly a mistaken belief according to the Quran, that they are aimless creatures with no possible answerability whatsoever of their own.
The Quran makes it clear that every moving creature / animal is created no different to our communities (ummah - i.e. implying they have characteristics in common, tribes, common values, social interaction, intent, resources, fellowship, kinship, hierarchy, communication methods et al); that their actions will be recorded as nothing is omitted from a Record / Book and that they will indeed be gathered back to their Lord for answerability in whatever capacity He so wills.
If they were merely aimless creatures there would arguably be no need to resurrect them on the Day of Judgement.
"And there is no creature on (or within) the earth or a bird that flies with its wings except (that they are) communities (umamun) like you. We have not neglected anything in the Book (Register). Then to their Lord they will be gathered"
This understanding is also supported by a narrative of the Quran which involves Prophet Solomon and a Hoopoe bird where there is clear evidence that the ‘bird' had the ability to disobey orders of some sorts and thus subject to retribution. Although, the bird had good reason for his absence in this particular instance, this does not deter from the fact that some form of accountability was expected from him.
“And he inspected the birds and said "Why is it that I do not see the hoopoe or is he from the absent?"
"I will surely punish him with a severe punishment or I will surely slay him, unless he brings me a clear reason (for his absence)"
I hope this helps, God willing