Not being a melodeon repairer, historian or manufacturer, I wouldn't dare offer a definitive answer to your question.
But being a beekeeper and one-time engineer, I'd suggest that beeswax was chosen because it was the outstanding (waterproof and common), easily worked, low temperature sealing compound of its day (a kind of primeval silicone sealant). It also lent itself to the lost wax process for casting intricate detail.
It's hard to imagine any other easily obtained compound which would serve as a very effective sealant - though the bees themselves only use it for comb construction (for brood, pollen and honey storage). Observe that wax comb spends its life in the dark of the hive - because natural wax can be degraded by sunlight. If bees want to seal anything in the hive, they use propolis (Greek deriv. - 'at the gates') which is a kind of plant glue - but this sets hard and becomes unstable over time. It also has antiseptic properties - I dissolve it in brandy or whisky and use it for a sore throat, a viral cold, the gripes or just when I'm fed up. :]
I suspect modern melodeon wax isn't just beeswax though; it probably has other stuff in it to make it light stable and flow/set properly. To me, it doesn't look like unadulterated beeswax.