Why do guys respond with lol?

I told my crush that he looks good when he dresses nice and he should dress nice more often and he responded with “lol” like what does that mean?

Why do guys respond with lol?
Post Opinion