Various graphical patterns can be typically created from both bitmap and vector sources and later applied to a new graphics file to fill out some elements with such a pattern, which might be what png to pat conversion represents.
Generally speaking, many graphics programs can create their own pattern through a dedicated function, typically found as some kind of pattern library.