The phrase "to lose both sides" means to be unsuccessful or to fail in achieving a desired outcome. It can also mean that one has lost support from two different groups, parties, or individuals. The term is often used metaphorically and implies that the person or group involved has not gained favor with either side of an argument or dispute.