Visibility and marketing of yourself to your future employers which might translate into better jobs for more money.
If you wrote amazing piece of code and nobody (except your coworkers) saw it, did it really happen? How would a potential future employer know?
By blogging about things you learn you establish yourself as someone who knows the stuff you blog about. It might lead to incoming job opportunities and helps when you submit your resume.