Many people consider ick generally present in all fish and all aquariums since it's so common. However, most fish just develop a resistance to it and a healthy non-stressed fish should be able to fight it off.
Now I have no way of figuring out if the beta was stressed or not but it could have had a poor genetic make up since betas are even more inbred then axolotls.
As far as preventing the spread of it, make sure none of the water from the infected tank gets into your axolotl tank, and other then that just keep your axolotl healthy and happy. I have never heard of an axolotl getting ick but that's just from me surfing this forum so I don't really know. I do know that you CANNOT use ick treatments on axolotls. Being a salamander and not having scales makes axolotls more sensitive to chemicals.
All in all, I don't think you have anything to worry about.