When you brewed it the hops released their oils/acids into the brew. These oils breakdown under the influence of light. This is why all older beers are bottled in brown bottles. The brewers that bottle in green glass (Grolsh, Heineken) sometimes develop off flavors and skunking. Those beers bottled in clear glass (Corona) are almost always skunked.
RE: My home made beer