It's funny - people don't know how they walk, either. The part of our brains that do that aren't really conscious, and we learned as babies by trial and error. Current walking robots learn in a similar way, and we probably don't understand what they are "thinking" either.