They stopped being used as primary weapons because better ones were found - mostly firearms - not because people got bored of it; or reverted to some earlier methods of warfare.
Yes, there is the general class of technologies (warfare, computing ...) and there are particular instances of those for a given time and space and evolve as the landscape changes.
The technology of warfare evolved to better mechanisms, perhaps same with computing.