牛記/牛记 is shortening of 牛仔褲/牛仔裤, and 笠記/笠记 is from the fact that T-shirts are worn by pulling it over the body (see also 笠).
牛記笠記