1- Most scholars have dismissed this hadith as not being authentic. They do not accept it
2- Some scholars believe Allah commanded the Prophet (s) to seem as if he made a “mistake” to show people (by demonstrating to them) how to fix their mistakes in Salat. So he didn’t really forget or make a mistake. He was simply following Allah’s instructions in order to teach them people