When your dog sees a bike flying down the way, their predatory instincts come into play.
They chase it down like they would a squirrel or a cat because to them there is very little difference.
That being said there is a lot you can do to quickly train your dog to stop chasing bikes cars and skateboards.