The issue is that few gas stations can offer a general "mechanic" like they did back in the day. Now with so much computerized and specialty equipment required to diagnose and repair newer vehicles, the cost of just keeping up with the tools, technology, required equipment and training/certification of staff is cost prohibitive. That's to say nothing of insurance requirements, salaries and the like. It's also a case where there's so much competition now that the mom and pop gas stations simply can't compete in many cases, aside from maybe basic mechanical work, radio or window tint installation, tire changes and repair and the like.
Where I grew up, there were probably 1/2 dozen "service stations" in that city when I was young, most of them located in gas stations, and there was 1 locally owned auto parts store. Now there are 3 national chain auto parts stores and 2 national chain lube/brake/tire shops. The smaller, independent guys working out of gas stations had too much competition to stay in the game. Most gas stations make very little on the sale of fuel, and that's where mini-marts, convenience foods and ATMs came in to help them clear a bit of profit. Where I live now, some gas stations have gotten creative. One sells really nice quality wines and craft beers, and they'll fill up or sell you a growler of one of a number of beers on tap. Another has removed the service bays, re-decorated the interior really nicely and in their place they have a high-end wine shop in the back, a cafe with fresh pastries and cakes in the front and a pretty outstanding Spanish restaurant. It seems funny to go park at a gas station and go inside to eat, but that restaurant is always packed, sometimes with a line.