The attacking soldiers would use it to try and enter the city or castle
humans
In medieval times there were all type of people, just like today. There were:farmerscraftsmenbakerslawyersbureaucratsgovernment leaders (nobles)soldiers and generalswindlers and thievesmurdersmerchantsexplorers
They live around orther merchants and town people.
peps who were Christian
There are two types. One hand held by multiple soldiers. Or the less strainful type which is mounted on a carrier, held by chains. Most battering rams were long pieces of wood, usually with metal tips. Handles would need to be attatched, or if trying to replicate the hanging ram, one would have to make a carrier and attatch the ram afterward.
The medieval mews were used as a type of stable for falcons
Jousting
A scaling tower was used in ancient wars to allow soldiers to reach the top of an enemies' town or fortress walls. If a battering ram is attached to it, then scaling the walls over an entrance to a fortress or city plus using the battering ram to break open the forts doors can be accomplished. This type of war "machines" were used into the Middle Ages.
the edible type
late medieval italy
in the late medieval period many medieval castles did have a primitive type of cannon.
they generally build on top of a high hill because they want it to be like a castle type of house