Why is the shamrock associated with St. Patrick?

St Parick had a shamrock because he wanted to show the people that god was three people in one person