There are a few possible explanations for this. One is that Obi Wan's memories were erased by the Emperor as part of his training. Another is that Obi-Wan simply didn't spend a lot of time with R2D2 and so doesn't remember him very well.