Not necessarily dumb at all if you can afford it. Consider costs of commuting - car, gas, maintenance, parking fees, insurance, etc. Consider weather conditions - in snowstorms, etc, you can walk to class, but driving is hazardous. Are there multiple routes so construction, road closings, accidents, rush hour jams don't mess you up. What about parking on campus? Most campuses are severely short of parking, and fees can be very high! Consider your time - probably 2 hrs a day, including finding parking space, walking from parking lot to class, etc. Don't you have better use of your time? And what about participating in campus activities? What will you do when you have 2-3 hrs between classes - go home or study? What do meals cost on/near campus if you don't have room & board contract.
If it was less than 30 minutes, probably a waste of money. Hitting 45 mins or more each way, you really have to run numbers, including calculations for your TIME. And at an hour or more, generally a very bad idea to commute & you really should dorm.
Room & board contracts are typically cheaper & more efficient than finding an apartment. Too many people forget to calculate utility costs, furniture & furnishings, hazards of roommates not paying their share, deposits & turn on fees for utilities, and roommates always seem to be able to talk you into pizza, etc, whether it's in your budget or not. You lose too much control over expenses with roommates, and you NEVER really end up saving anything! Also prevents end-of-month starvation due to blowing your budget!