A man accused of raping an elderly woman has been released on bail after a magistrate found he did not pose an unacceptable risk to the community.