What does Exodus 5:14 mean?
This is one of the expected outcomes of Pharaoh's unfair order (Exodus 5:6–8). He fully intends that the Hebrew slaves be given an impossible task. They cannot find enough random straw to make up for what Egypt no longer provides. This is meant to humiliate, and to remind them that Egypt is their master. It also creates an excuse for punishment. The "foremen" noted here are Jewish men assigned as supervisors or crew leaders among their own people. They have some authority, but they are slaves themselves.When the impossible is not made possible, these foremen are physically beaten. The "taskmasters" of Egypt are the slave drivers given power over the Hebrews (Exodus 1:11); presumably, these are the men delivering the beatings. The question being asked is sarcastic; everyone knows why the Israelites are struggling to produce. The abused men will appeal to Pharaoh (Exodus 5:15–16), only to realize that this is a deliberately hopeless situation (Exodus 5:17–19).
This leads to another of Pharaoh's intended consequences: resentment against Moses (Exodus 5:20–21). Pharaoh is irritated at Moses' requests (Exodus 5:1–5). He hopes to intimidate the Israelites so they will not listen to men like Moses (Exodus 5:9).