Changing the phrase to your suggestion would be incorrect.
The definition of a moment is "a very brief period of time". That brief period is undefined but fits in with the use here on XenForo of less than a minute.
A second is a fixed period of time. It's 1 second.
Using "a second ago" when something happened several seconds ago would clearly be wrong. Using "a moment ago" however would be correct.