This information came from his mother in all likelihood and even Obama said in his book he didn’t believe what she or his grandparents told him.
Why would he lie about his birthplace?