A Type I error occurs when there really is no difference (association, correlation..) overall, but random sampling caused your data to show a statistically significant difference (association, correlation...). So your conclusion that the two groups are really different (associated, correlated) is an error