I wouldn't compare Panasonic to Kyocera. Kyocera was a ceramics company established in 1959 that bought its way into electronics in 1979 and bought Yashica in 1983 to enter the camera industry. Yashica already had a licensing agreement with Zeiss. It's worth noticing that they closed down their camera production around the same time as Sony, who also had a licensing agreement with Zeiss, entered the DSLR business with the acquisition of Konica Minolta's camera division. My guess is that they didn't find it wortwhile trying to compete with the Sony behemoth in a field where Sony would have much more competence and probably also more money to invest. The Zeiss lenses was the key to success in the camera market for Kyocera, and sharing that key with Sony probably wasn't too attractive and option.
Panasonic on the other hand launched their first radio in 1931, their first TV in 1953 and their first camcorder in 1985. They have been working closely with Leica for 15 years and are clearly profiled as a sound and imaging company, although that is only part of what they do. However, that doesn't necessarilly mean that they aim to take over Leica, although that is exactly what they did with Sanyo, a related company that was also a competitor (Sanyo was started as a subcontractor to Panasonic by Panasonic founder Kōnosuke Matsushita's brother-in-law Toshio Iuen after WWII and acquired by Panasonic in 2009).
Should it still happen some time in the future, I think Panasonic would be a more or less ideal owner for Leica. They share technologies both ways, and they are two dedicated companies based in two nations that both have very long traditions within innovation, optics and electronics.