As Jmat says, most people are usually registered with the same doctor, so when we say 'I'll go to the doctor' (or the 'doctor's') it means 'the doctor [that I usually go to]'.
It's the same with dentist. You go to 'the dentist' every six months - and it's understood that this is your regular dentist. However, if you suddenly had toothache on holiday in another town, you might try to find 'a dentist' ie any dentist.
It's the same when we say sentences such as
'He's at the pub'
'She goes to the gym'
'I went to the supermarket'
'He ran round the park'
The suggestion in all of these sentences is that there is only one pub, gym, supermarket or park that the person usually goes to. 'A gym' would be a random, unspecified gym, whereas 'the gym' means your usual gym, or the gym which you belong to.