I understand that humans suffer because this dunya is a test for us and Insha'Allah we will be rewarded but I do not get the reasoning of why Allah (SWT) also allows suffering for animals. I'm not talking about eating them as I understand why we are allowed to eat them but I do not understand why Allah (SWT) allows animal suffering such as animal cruelty of animals like dogs, birds, cats and all of the others. Is their suffering supposed to be a test for us humans as well?

1- Yes it is a trial for us too. If we unjustly torture animals, Allah will hold us accountable for that.

2- Allah will compensate the animals somehow on the Day of Judgment. We do believe He will resurrect them.