Why is this sentence ambiguous?

I bought blue shirts and trousers