1. The same way He made lions with big teeth. When He was in control they lay with lambs. Is He evil for being omniscient / having foreknowledge? No! He can't help the fact that He is God...of the universe
. We know He is not evil by looking at where the evidence of what He decides to do with His omniscience and omnipotence points...John 3:16.
2. God gives life and takes it away. We cannot grasp His omniscient timing of death. God would only be evil if He tortured your chicken in heaven. The bible says there is no torture in heaven. So God is good and your chicken is happy.
3. We need to remember that it is because God is good that He does not always get involved! Free will = good. God only hears the prayers of His people John 9:31. If you are His child and you prayed, well then you just need to accept He knows better / it is all part of His plan for your life.