On my bike I've noticed a strange noise coming from under the pipes, just 2-3" after the head pipes with the muffler connection.

I've noticed some small holes there.
Are they holes to prevent water condensation into the pipes, or the previous owner of this bike tried to do something strange on them?

I'm going to build my own mufflers, but I'm curious to know if you also have this holes and some hot gas coming out from them.