The second table is for a fully wild card. The first table is for a partially wild card that can only be used to complete a straight, flush, straight flush, or royal flush, otherwise it must be used as an ace (same usage as in pai gow poker). The next two tables show the probabilities in 5-card stud with one wild card.
The following table shows the number of combinations if each card was dealt from a separate deck, which would be mathematically equivalent to an infinite number of decks.