Most restaurants can barely afford to stay open because most restaurants are run by people who have no business running a business. Hell, let's be honest, most businesses are run by people who have no business running a business. Most people don't really want to run a business, they want to do something else, but also get paid to do it.
There are plenty of small restaurants around the world that get by fine without tips and manage to pay their employees. But for some reason, the U.S. thinks this is somehow impossible.
Tipping is stupid. But since servers can make more money than on a set wage, they don't mind that the restaurant owners are essentially pitting their employees against their customers. You know what would increase the overall level of service? If the restaurant paid a decent wage to their employees and then removed the obligation from the customer to pay the restaurant's employees.