Different jurisdictions are allowed to have different minimum wages for a reason.
There's a federal minimum, states can have minima, and even municipalities can set their own.* If you want to speak in idealism that's never going to happen anyway, $40 federally (a figure someone on the Internet just pulled out of thin air) is the dumbest solution to localized high cost of living.
Also, a 40-hour work week at $40/hour is $83,200 annually. The median household income in Bedford is $78,785, while 66% of people own homes. I don't think you know what you're talking about even regarding this specific town.
* Republican states largely bar municipal minimum wages. That doesn't make the solution to blanket the entire country in a $40 minimum. I mean obviously, but that's a controversial take inside an echo chamber that doesn't actually care.
Edit: I got so caught up in the specifics of the minimum wage that I completely forgot to mention the main reason this would be stupid: by the time you're enacting $40 federal minimum wage, you're far past the point where you can address cost-of-living directly – things like universal healtcare, free and accessible public transit/micromobility, nationalized energy based mostly on renewables and battery storage, subsidized housing, stopping union-busting and monopolies, and I could go on. Like you're sidestepping (comically dodging, really) actual solutions in favor of the dumbest, most capitalist way to go about solving cost of living while not addressing the underlying issues.