Stray cats may be infected with rabies or other diseases that cause a lot of pain and make the cat aggressive.
In addition, feral cats are always on the defense, being used to having to fight for food.
A stray cat may attack you and display unexpected behavior such as jumping on you, biting or scratching.