Thank you for your question and welcome to Just Answer!
The diameter of a golf hole is 4.25 inches. The depth of a golf hole is 4 inches. Why that size? No one knows for sure. It happens to be the size they used at St. Andrews and so that became the standard for all courses. The actual hole cutter is still on display in fact!
I hope this helped! If so, please don't forget to "Accept!"