These apparently started out as prepositional phrases: in this way, in the wrong way, in the right way. Over the years people dropped the "in" for convenience, and we are now left with the remnants of these prepositional phrases. With the "in," these had an adverbial function modifying the verb.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.