Hydraulic disc brake - lever compatibility
An important reason why you can't randomly mix and match hydraulic brake parts is because different manufacturers use different hydraulic fluids. SRAM uses DOT 5.1 brake fluid. Shimano uses mineral oil. Campagnolo uses mineral oil. Using the wrong kind of fluid can damage the seals.