It is out of Allah's mercy and kindness to His creatures that He allowed us to eat what is pure and forbade us from eating what is impure.