It is also a lot more expensive to produce. Lego is just injection molded ABS plastic.
Meccano/Erector (or the Czech Merkur) are all metal, die cut/stamped out of sheet metal and using actual screws. Moreover, the French factory being closed was practically hand-making it, it was not at all automated. So as economically inefficient and expensive as it gets.
Also these types of construction sets just aren't as amenable to the usual licensed IP - you can't really make Batman or Star Wars figurines out of sheet metal. These sets don't really have a history of mixing a lot of plastic parts with the usual metal bits. It doesn't work well together and also the result looks a bit weird with all those holes. In addition, the types of shapes you can make out of it are more limited due to the way it is manufactured (or it would get very expensive if custom bent/shaped parts were required). Whereas for Lego it is just another mold being used so they have a lot more flexibility.
Meccano/Erector or Merkur are really most suitable for what they were originally modeled after and designed for - mechanical machines, engines, contraptions, etc. Lot of real-world machines were prototyped with Merkur - e.g. the first contact lenses were made by their inventor using a Merkur machine.
Sadly those types of toys are not as much in vogue today - or need to be full of flashy electronics, connected to a phone and ideally licensed from Disney to be able to sell them ...