Luxating patella is much more common in toy breeds, but is not unheard of in larger dogs. There may be a genetic component, but as it’s not a common problem in Labs (I have heard of the occasional case though), it isn’t something that is regularly screened for, and it may or may not be hereditary. It’s also something that comes and goes - essentially the kneecap slides out of position and can then pop back in, so if it wasn’t out of position at the original vet visit, I can see why they wouldn’t have caught it. A second opinion certainly wouldn’t hurt in any case.
I don’t know a ton about this condition (other than having friends with toy breeds who have dealt with it), but I would imagine that like most orthopedic injuries/conditions, being overweight would probably exacerbate the problems with it, so if your girl is overweight, then getting the excess weight off would certainly be a good thing for many reasons. There are better ways than using Science Diet though ... starting with just reducing the amount of food (swapping in some canned green beans for bulk) for example. If for some reason that is ineffective, there are higher quality “diet” foods on the market - Chloe is doing very well on Annamaet Lean, but there are others out there - you just have to look around.