The Israelites thought that since they had the Ark that they couldn’t be beaten. But, they were. They lost the Ark, as well. It wasn’t that God didn’t care. To take a side would be to take away free will. Sometimes, you win and sometimes you lose. But, God is with us through it all. It took the Israelites many years to recognize this. It is the same with us.