That vessel is called a "Bomb" or "Bomb vessel". Its purpose in life is bombarding shore establishments. It would have just a few regular long guns suitable for ship-to-ship combat.
Those mortars were not suitable for aiming at any kind of a moving target. To be effective, the Bomb needed to be anchored very firmly so the gunners could make sure the only variables involved were from their aim and their precise cut of length of the fuze.
This one pictured, from 1797, was from the twilight of popularity of this type of vessel. They were going out of vogue by then.
Nice looking model, though, isn't it?
Rick