Eureka!
One is a transitive adverb, and can be used with or without a subject, and afterwards is an intransitive adverb and cannot be used with a subject of adverb. "He read a book afterward", where "a book" is a subject" but "they lived afterwards", without a subject. The first is a transitive, and the second is an intransitive adverb.