A practical suggestion: make sure your own equations are dimensionally consistent, and your students will be more likely to make theirs consistent as well, thus avoiding mistakes like these.
In particular, your equation $d = 6t$ is not dimensionally consistent. If I plug in, say, $d = 1\text{ mile}$ and $t = 1\text{ hour}$, I get the obviously nonsensical equation $1\text{ mile} = 6\text{ hours}$. Which is what the student in your example got too, and then tried to somehow make sense of. Arguably their mistake was in trying to make sense of nonsense, but it's an understandable mistake if they haven't been taught any better.
OK, but enough polemic. If $d = 6t$ is nonsense, then how should you correctly express the idea that a person runs 6 miles in an hour? Simply like this:
$$d = 6\frac{\text{miles}}{\text{hour}}\, t$$
Now you, or your students, can in fact plug in, say, $t = 1\text{ hour}$ and solve for $d$:
$$\require{cancel} d = 6\frac{\text{miles}}{\cancel{\text{hour}}} \cdot 1\,\cancel{\text{hour}} = 6\text{ miles}$$
Better yet, they can check that the result they got in fact fact has units that make sense. If they had instead obtained a result of, say, $d = 6\text{ hours}$, they would've immediately known that they'd made a mistake somewhere, since $d$ is supposed to be a distance, and an hour is not a unit of distance!
I do understand that my suggestion above might not seem practical at a glance, since it basically amounts to completely changing the way you teach basic algebra whenever physical quantities with units are involved. You might even have a textbook that teaches things the same way you currently do, and you'd have to either find a new textbook or tell your students "don't do it the way the book says, do it the way I say" (which, while sometimes a possible solution if you must work with a subpar textbook, is far from pedagogically ideal). Your students may also have previously learned to do things differently, and you might need to get them to unlearn bad habits like leaving units out of equations. Heck, you might have to force yourself to unlearn these habits first, too.
But I would still suggest at least considering this approach. Maybe try it out on one class with some particularly struggling students as an experiment. (Do tell your students that you're doing an experiment, especially if you've previously taught the same class to do things differently, or they'll just be confused!) I am quite confident that, despite whatever initial difficulties you might have, in the long run this will get you better results and help your students better understand what's happening with equations like this.
Ps. Also make sure that your word problems actually have answers that make sense, so that your students can use their common sense to check their answers. And teach them to refine that common sense using techniques such as dimensional analysis (as described above), order-of-magnitude estimation and other approximation and consistency checking methods. This is a valuable skill that will serve your students well in their life, and one that mathematics education all too often neglects (or sometimes even actively harms!).
Put another way, depending on the students background, this is either a trivial step forward, or one is unpacking a large amount of necessary understanding.
– Michael G Feb 09 '24 at 21:47