There are 216 possible outcomes for throwing 3 dice. 6 of these outcomes are throwing the same number for all three throws. 6/216=1/36 as the probability.
Another way is to consider just one die. The chances of the other two having the same number are (1/6)²=1/36.