In general bleeding while passing stools can be due to piles/ hemorrhoids, as you are not having any pain it should be Internal hemorrhoids.
It will be due to constipation, or lack of fiber in food.
You should visit the general surgeon for proper treatment.
Next Steps
Visit general surgeon for further treatment.