 God had used physical want to take them down to Egypt. Without the famine, they would certainly never have gone there. Even with the famine, they would have gone someplace else, anywhere else rather than Egypt, if they could possibly have found food anywhere else. Even being driven into Egypt by the famine, they would still never have come to the point of confessing their sin if God had not worked through Joseph to deal with them with harsher measures.