Hacked Pokemon are Pokemon made or modified in certain software. Usually, people hack illegal shininess, PokeRus or IVs (stats). There are very few signs of pokemon being illegal when viewing its summary and experienced hackers can avoid them well, but www.pokecheck.org is a great place to check legality.
If you trade by GTS, you want to check those Pokemon. GTS is full of hacks, unfortunately.