The first answer to that is that Christ didn't found a bible, He founded a Church. The bible wasn't put together until a Catholic Church council did so around 300 years after Christ founded the Church.
The second answer is that though Holy Scripture doesn't directly demand a priest remain unmarried, in numerous places it states, unambiguously, that being single is the preferable status.
Most importantly though, in Catholic doctrine, the priest is not simply some Joe-guy who knows alot about the bible or took courses on scripture in college to give lectures on Sunday. The priest in "in persona Christi." IOW, he acts in the actual person of Christ. Christ wasn't married.
This is misleading. The various writings that we consider "the bible" were, just like the oral traditions, a part of the Church before that council. That council merely put a stamp of approval on what had been the practice of many Churches until then.
A better way of describing it is the Church recognized what God had appointed as scripture.