Looking at those run plays in isolation can make them seem like a mistake, but those plays don't happen in isolation. They are all part of the flow of the game and are needed to set up other plays and to make the defense have to keep defending against everything.
There's never been an NFL game in which the offense gained positive yards on every play. Even when a defense is being blown out, they occasionally win some plays.