That "masonic frock" on eBay looks like similar to a Knights Templar frock from the 1920s, given the buttons.
The top frock coat looks similar, with of course the buttons being replaced with some sort of military (looking?) buttons, but not identical to the one on sale at eBay. For one the second one has epaulets, while the top does not, the back cut seems different and so does the collar.
If I were to guess I'd probably say that it is 20th century fraternal organization or even civilian frock that has been modified either by someone who wanted to pass it for something else, or by a re-enactor
Cannot get a good ID unless you look and feel the material, stitching, lining, look for labels, etc. Nobody can really authenticate a coat in the internet
(BTW, That grouping in double breasted frocks during the ACW denoted Major General rank. Of course, this has nothing to do with it.)