1. So that He(Allah) may test as to which of us(Humans) follow the command.
Eg: Allah commanded Adam not to consume the fruit in paradise. Just to test if Adam obeys the command.
Some creation are created, just as a test for mankind.
2. Pigs eat waste products, and their own shit, be it garbage/excreta/etc, so they eat humans' byproducts and keep drains clean. They are also used in land cleaning in many places.
Bopanna ksa
Good question. But here is the answer
1. So that He(Allah) may test as to which of us(Humans) follow the command.
Eg: Allah commanded Adam not to consume the fruit in paradise. Just to test if Adam obeys the command.
Some creation are created, just as a test for mankind.
2. Pigs eat waste products, and their own shit, be it garbage/excreta/etc, so they eat humans' byproducts and keep drains clean. They are also used in land cleaning in many places.
Allah also created dinosaurs.