in 1 litre capacity bottle only 50 ml of water was left behind.however i noitced greeish spots on the bottom of the bottle,i checked with a cotton swab seems to be algae.what could be the reson

If the water contained spores (not unusual - even in commercially bottled water since) then getting some algal growth after leaving it in sunlight for a while is expected.