It always seemed to me that R2 woke up because Luke basically told him “don’t reveal the map until the time is right”
Which was a good enough explanation for me.
3PO’s like about how it’s very unlikely r2 would have the map in his backup data or something like that did irk me though. I watch it and think “really? Why not just check to be safe? Wouldn’t hurt to look.”