IIRC H.264 and the follow on H.265 are not actually FOSS codecs; they are patented and require a licensing fee. Where as VP9 is royalty free. So this is a business decision, but also a move towards freeing streaming media from the royalty/licensing model making things cheaper for everyone (if adopted en mass).